jsp - tomcat 7 - org.apache.jasper.JasperException contains invalid expression(s): javax.el.ELException: Failed to parse the expression -


this question has answer here:

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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -