Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
    Bookmark Topic Watch Topic
  • New Topic

JSP statement which has qoute within a qoute.

 
victor chiong
Ranch Hand
Posts: 73
  • 0
  • 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: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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