Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

JSP statement which has qoute within a qoute.

 
victor chiong
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Guys,

Please help me with this?


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>

I found a solution but i dont know how to do it...

How can i change this in tomcat 7?
org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

Thanks,
Vic
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
    Bookmark Topic Watch Topic
  • New Topic