https://issues.apache.org/bugzilla/show_bug.cgi?id=56029
--- Comment #2 from Konstantin Kolinko <knst.koli...@gmail.com> --- Ack. Reproducible with your sample file from Comment 0 minus the 'xmlns:c' and 'xmlns:fmt' attributes. > javax.el.ELException: Failed to parse the expression > [${currentControllereq'News'?'selectedItem':''}] Notes: 1. "currentControllereq" is printed without spaces in the above message. Also the rest of whitespaces are also missing in the message. 2. A workaround is to add braces around the variable name. The following does work: ... class="${(currentController) eq 'News' ? 'selectedItem' : ''}" ... 3. This issue happens when EL in the value of a tag attribute. This issue does not happen when EL is in the plain text (body of a tag). The following does work successfully: <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" ><jsp:directive.page contentType="text/plain"/> ${currentController eq 'News' ? 'selectedItem' : ''}</jsp:root> -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org