关于EL表达式不能正确处理的问题

jsp中EL表达式不能正确处理是因为web.xml文件中web-app的引用版本太低,引用更高级的版本即可:

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID" version="2.5">

猜你喜欢

转载自blog.csdn.net/july_young/article/details/79600815