Constantin Nickonov wrote:
>
> Does someone have a Java method handy to encode a String to mimic a GET
> form method, i.e., convert something like:
>
>   name=Steve Smith
>
> to
>
>   name=Steve+Smith

Are you looking for something more than
public static String java.net.URLEncoder.encode(String s);
can offer?

Kostas


>
> I am writing a servlet, which must generate a URL outside a form (which
> does this automatically). Spaces and special characters are changed to
> comply with URL specs.
>
> Thanks in advance!
> Constantin
>
> ________________________________________________________________________

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to