jsp中el表达式无效解决方案

方法一:

在jsp中加入,但每个jsp都需要添加这个代码

<%@ page isELIgnored="false" %>

方法二:在web.xml的web-app标签中加入相关命名空间

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
         http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         id="WebApp_ID"
         version="3.1">

 






posted @ 2020-12-08 13:35  卖麦的麦麦  阅读(83)  评论(0)    收藏  举报