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


Works !!!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s