JSP 2.0 – Quote not escaped
Encountered a weird problem today, a running application on Linux/Tomcat 5.5 starting crashing at various places after re deployment without much code issues.
Issue came up in all the JSP pages which had request.getParameter call within value attribute of any tag. Logs showed the following JasperException
Attribute value request.getParameter(“XXX”) is quoted with ” which must be escaped when used within the value
Simple fix, append the following to JAVA_OPTS variable in catalina.sh
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
Works !!!