Try using java.net.URLEncoder.encode(string). This will translate the string to
proper x-www-form-urlencoded format. This static method returns the translated s
string.
-Dennis-
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Date: Tue, 2 Nov 1999 14:33:05 -0000
> From: Martin Matthews <[EMAIL PROTECTED]>
> Subject: Escape strings for URL's
> To: [EMAIL PROTECTED]
>
> Has anyone found anything in JSP/Java which quickly and esialy escpaes
> strings for inclusion in a URL? Something similar to the JavaScript ecscape
> function would be perfect......
>
> Cheers
>
> Martin
>
> ____________________________________________
> http://www.akqa.com
> Telephone: + 44 (0)171 494 9200
> Fax: + 44 (0)171 494 9300
> Mob: + 44 (0)797 0813014
> Address: AKQA, Princes House, 38 Jermyn Street, St James's, LONDON SW1Y 6DN
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html