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>