IDEA解决JSP页面无法使用EL表达式问题

方法1:更改web.xml的web-app标签中的命名空间:

<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="3.1">
</web-app>
方法2:jsp页面开头添加 <%@ page isELIgnored="false"%>

猜你喜欢

转载自blog.csdn.net/qq_38712932/article/details/80592769