John Burns wrote:
> URLEncoder.encode encodes the entire document. I think you just want to
> encode your parameters( Netscape Navigator does choke on spaces in URL
> parameters). Just use a StringBuffer object to replace all occurrences of a
> space in your parameters with the ASCII hex representation, "%20". When you
> get it back, it will be translated back to spaces for you. Make sure that you
> use name/value pairs in the URL. They should look like this on the way out:
> "http://host:8080/servlet/YourServlet?param1=first%20Param,param2=second%20par
> am".
Actually, spaces are treated specially in URL encoding, and may be
represented by '+' -- and name-value pairs should be separated by '&'
as in:
http://host:8080/servlet/YourServlet?param1=first+Param¶m2=second+param
___________________________________________________________________________
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