更新时间:2022-02-27 22:00:29
<c:out value="${aName}"/>
有效!但是${aName}
也不能正常工作吗?
<c:out value="${aName}"/>
works!! But shouldn't${aName}
work aswell?
因此,模板文本中的EL"无效吗?可能有以下一种或多种原因:
Thus, "EL in template text" doesn't work? That can have one or more of the following causes:
web.xml
未声明为Servlet 2.4或更高版本.@page
配置有isELIgnored=true
.web.xml
在<jsp-config>
中用<el-ignored>true</el-ignored>
配置.web.xml
is not declared as Servlet 2.4 or higher.@page
is configured with isELIgnored=true
.web.xml
is configured with <el-ignored>true</el-ignored>
in <jsp-config>
.要修复一个或另一个,显然可以:
To fix one or other, obviously do:
c:out
并与之一起使用.web.xml
声明为appserver支持的最新Servlet API版本.isELIgnored=true
属性.<el-ignored>true</el-ignored>
条目.c:out
instead and live with it.web.xml
to latest Servlet API version supported by appserver.isELIgnored=true
attribute.<el-ignored>true</el-ignored>
entry.