jsp - tomcat 7 - org.apache.jasper.JasperException contains invalid expression(s): javax.el.ELException: Failed to parse the expression -
this question has answer here:
- creating array using jstl or el 6 answers
in 1 of jspx, jstl expression below:
<c:set var="colors" value="${['#1abc9c', '#e74c3c', '#3498db', '#f4d03f', '#9b59b6', '#bdc3c7', '#244f75']}" />
is throwing below error on tomcat 7:
org.apache.jasper.jasperexception: /web-inf/views/proj/abc/show.jspx (line: 90, column: 119) "${['#1abc9c', '#e74c3c', '#3498db', '#f4d03f', '#9b59b6', '#bdc3c7', '#244f75']}" contains invalid expression(s): javax.el.elexception: failed parse expression [${['#1abc9c', '#e74c3c', '#3498db', '#f4d03f', '#9b59b6', '#bdc3c7', '#244f75']}]
i have added following in tomcat 7 conf catalina.properties per other threads doesn't help.
org.apache.el.parser.skip_identifier_check=true
well working colleagues on tomcat 8.5. need upgrade or missing something?
try changing to:
<c:set var="colors" value="${fn:split('#1abc9c,#e74c3c,#3498db,#f4d03f,#9b59b6,#bdc3c7,#244f75', ',')}" />
Comments
Post a Comment