Answering my own question here.

Escape HTML special characters from a String
http://www.rgagnon.com/javadetails/java-0306.html

and should you ever need it, the reverse.
http://www.rgagnon.com/javadetails/java-0307.html

Honestly I'm surprised that this is not included in DBTaglib
<sql:getColumn >  or that more people are not asking for such
features. I must be missing something.

Have a good weekend.

Soefara Redzuan.


>From: "Soefara Redzuan" <[EMAIL PROTECTED]>
>Reply-To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Quotes in form field values.
>Date: Fri, 03 May 2002 07:48:29 +0800
>
>Sorry for the newbie question but I can not find the answer in the mail
>archive.  If <sql:getColumn> returns a string with quotes then it makes an
>error in my HTML.
>
>ex.
><input type="text" value="<sql:getColumn position="1"/>">
>
>becomes
><input type="text" value="He said "This is a problem"">
>
>How do you prevent this happening ?
>
>Soefara Redzuan.
>
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to