On Tue, 13 Jun 2000, Manish Bhatnagar wrote:

> Hi all!
>
> Can I pass special characters in the query string?
> e.g.
> http://machine_name:8080/servlet/servlet_name?parameter1=value1&parameter2=value2
>
> where
> value1 or value2=abc#efg#hij
>
> The idea is to pass more parameters concatenated with a delimiter (#
> here) than to use many parameter=value pairs.

java.net.URLEncoder.encode should be helpful -- you may have to play
around with how you use it -- for example, by calling it for each
value you added to the parameter list, and being careful about which
characters you use in the values (e.g. no spaces) -- but I think you
should be able to get it to work.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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