Jar包引入与web.xml配置文件


1)Jar包引入

JSP导入jar包、tomcat包和数据传递(request、response、session、cookie) 常用

2)XML

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                      http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
    version="Tomcat版本号" metadata-complete="true">
    <!-- Tomcat版本号需要和schemaLocation中的一致web-app_3_1.xsd-->
    
    code...

</web-app> 

web中常见web.xml标签,及初始化顺序


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM