This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP statement which has qoute within a qoute. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

JSP statement which has qoute within a qoute.

victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
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

Joined: Jan 10, 2002
Posts: 56192
    
  13

Please do not post the same question more than once.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSP statement which has qoute within a qoute.
 
Similar Threads
cookie and login
Do we consider Escape chars in Exam or not?
Login Authentication Using Bean and Servlet in JSP
passing dynamic parameter using action
JSP error because of a qouted value insied a qoute.