I do the following in a JSP to pass the a string (articleText.getBlurb())
to a form which sends an e-mail to the user:

<input type="hidden" name="blurb" value="<%= articleText.getBlurb() %>">

This works great, UNLESS the blurb looks like this:

Kefallonia is big, green, and has many spectacular beaches. This beautiful
island owes much of its recent fame to the book and subsequent movie
"Captain Corelli's Mandolin," which takes place on Kefallonia during WWII.

Note the double-quotes around "Captin Corelli's Mandolin,".

The value attribute is terminating, and all that gets sent is:

Kefallonia is big, green, and has many spectacular beaches. This beautiful
island owes much of its recent fame to the book and subsequent movie

...all the way up to the first quote.

Is there a way to "escape" the quotes in the blurb so that the entire
string gets sent?

        Thx in Advance,
        Zeb

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to