Does anyone have any good references or ideas on
how to deal with embedded quotes in JSP? For example,
if I have the following in my JSP:

<input type="text" name="myfield" value="<%= myBean.getSomeStringValue() %>">

the value is not properly displayed if the result of the myBean value
has double quotes embedded in the string. It get's even worse if you
need to embed a JSP value in Javascript because misplaced quotes will
generally result in a scripting error in the browser.

Jeff

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to