Hi Guys,
Tomcat will not allow this because of error:
org.apache.jasper.JasperException: /TestBean.jsp(20,10) Attribute value request.getParameter('userName') is quoted with ' which must be escaped when used within the value
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
<code=jsp>
<
jsp:setProperty name="person" property="name"
value="<%= request.getParameter("userName")%>" />
</code>
Any ideas? I found a solution but i could not understand it...
For tomcat, this is the reason.... Where to find that settings in tomcat Catalina?
STRICT_QUOTE_ESCAPING as true where as
6.0.20 treats STRICT_QUOTE_ESCAPING as false.
regards,
Vic