According to TLD or attribute directive in tag file, attribute test does not accept any expressions
使用<%@ page isELIgnored="true"%>
JSP 2.0的一个主要特点是它支持表达语言(expr 在web.xml的<jsp-property-group>中可以控制一组JSP是否使用EL,在每个JSP中也可以指定是否该JSP使用EL。在page directive中的isELIgnored属性用来指定是否忽略。格式为: <%@ page isELIgnored="true|false"%> 如果设定为真,那么JSP中的表达式被当成字符串处理。比如下面这个表达式<p>${2000 % 20}</p>在isELIgnored="true"时输出为${2000 % 20},而isELIgnored="false"时输出为100。Web容器默认isELIgnored="false"。 |
引用EL表达式异常处理
最新推荐文章于 2023-11-13 12:28:07 发布