The ampersand (&) is a special character in an URL, it separates parameters
in a query string. In order to include one in the data, you'll have to
URLEncode the string.
(*Chris*)
----- Original Message -----
From: Thomas To <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 02, 1999 2:36 PM
Subject: problem with sending paramenter to servlet
> Hi all,
>
> This may be a very simple question, please bare with me. I have
> problem sending parameter to servlet with the '&' character. I have no
> problem sending string such as:
>
> http://www.test.com/servlet/foo?param1+param2+param3
>
> At the servlet, it will receive "param1 param2 param3".
>
> However, if there is an '&' in between, the list will break right at the
> '&'. For example,
>
> http://www.test.com/servlet/foo?param1+param2+&+param3
>
> At the servlet, it will only receive "param1 param2 ". What should the
> '&' be replaced by?
>
> Your help is greatly appreciated.
>
> - Thomas -
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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