web.xml 版本必须是2.4以上的版本
<web-app version="2.4"
xmlns=" http://java.sun.com/xml/ns/javaee"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd">
xmlns=" http://java.sun.com/xml/ns/javaee"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd">
<jsp-property-group>
<url-pattern>/legacy/*.jsp</url-pattern>
<el-ignored>false</el-ignored>
</jsp-property-group>
<url-pattern>/legacy/*.jsp</url-pattern>
<el-ignored>false</el-ignored>
</jsp-property-group>
<%@ page isELIgnored="false" %>
添加这三个就可以了