Tomcat 7 'javax.el.ELException' solution (failed to parse the expression [${xxx}])

Tomcat 7 'javax.el.ELException' solution
Tomcat 7 has stricter syntax requirements for EL expressions. For example, "${owner.new}" will cause a parsing error because it contains the keyword new.
The problem is out, how to solve it? There are three kinds, as follows:
The first one: strictly abide by the java specification, modify the property name of the object, and require no java keyword; the
second: modify the EL expression, for example, "${owner.new}" can be changed to "$ {owner['new']}"; The
third type: Modify the tomcat property, ignoring the keyword check of the EL expression. Modify the $CATALINA_BASE/conf/catalina.properties file and add the org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true option.

 

Reprinted:

http://blog.csdn.net/zwx19921215/article/details/36896865

http://blog.csdn.net/moneyshi/article/details/50982054

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326126181&siteId=291194637