Expression Language skip identifier check in tomcat 7

后端 未结 5 1779
一向
一向 2020-12-28 10:53

I got following error :

SEVERE: Servlet.service() for servlet jsp threw exception
javax.el.ELException: The identifier [case] is not a valid Java identifier          


        
5条回答
  •  别那么骄傲
    2020-12-28 11:35

    If you are using Eclipse, for example, you have to add the folowing line to catalina.properties in Servers folder, (look for it in Package Explorer, and select your corresponding Tomcat folder):

    org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true
    

    Remember that Eclipse uses different location for configurations rather CATALINA original directories.

    It's worthy to take a look on Tomcat's properties page, at https://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html

提交回复
热议问题