According to TLD or attribute directive in tag file, attribute items does not accept any expressions.
It may be because that (Quoted from https://docs.oracle.com/cd/E19316-01/819-3669/bnajh/index.html):
Each JSP page has a default mode for EL expression evaluation. The default value varies depending on the version of the web application deployment descriptor. The default mode for JSP pages delivered with a Servlet 2.4 descriptor is to evaluate EL expressions; this automatically provides the default that most applications want. The default mode for JSP pages delivered using a descriptor from Servlet 2.3 or before is to ignore EL expressions...
To quick-fix this issue caused by the upgrade from Servlet 2.3 to 2.4, we can simple add this configuration in web.xml to change the behavior of Servlet 2.4 to be backward compatible with Servlet 2.3:
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>true</el-ignored>
</jsp-property-group>
</jsp-config>
No comments:
Post a Comment