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:
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 JS
hen call that whenever we're placing a String into an input form that
> uses the value="" format:
>
>
> Your javascript problem is not clear, but if the above does not work, you could try
escaping " with \", or change them to ' (single-quote).
>
> Lan
It may depend on the version of Tomcat, but in 4.0.3 there
is a section in $TOMCAT_HOME/conf/web.xml that looks like this:
index.html
index.jsp
- Original Message -
From: "[Moisey Oysgelt]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 8:31 AM
Subjec
There was a good article on this in the now defunct magazine Java Report a
while back. Here's a simple example that uses a controller servlet to place
an Object[] in the request attributes.
<%@ page contentType="application/csv" %>
<% for (int i = 0; i < values.length; i++) { %>
"<%= values[i].g