Use Javascript escape() function to encode the URL.
For ex,
<A href="../test.jsp?name="+escape('jack&joe')+"&desription='friends'">jack
& joe</a>
On Fri, 3 Oct 2003 08:42:26 +0530, vtr <vtr@(protected):
>yes I pass it through url it is in a Link and there are many such links
with
>different values for the same parameter
>
>like
><A href="../test.jsp?name='jack&joe'&desription='friends'>jack & joe</a>
><A href="../test.jsp?name='vtr&joshi'&desription='friends'>vtr&joshi</a>
><A href="../test.jsp?name='ravi&kumar'&desription='friends'>ravi&kumar</a>
>...
>
>V.T.R.Ravi Kumar, Engg.(CCX), BHEL Phone Office +91 1334285260 Mobile +91
>1353114861
>----- Original Message -----
>From: "Eric Noriega" <noriega@(protected)>
>To: <JSP-INTEREST@(protected)>
>Sent: Thursday, October 02, 2003 7:37 AM
>Subject: Re: Please help regarding passing special characters
>
>
>> How are you passing the parameter? Is it as part of a URL?
>>
>> vtr wrote:
>>
>> >Hi
>> >
>> >in one of my forms i am sending '&' something as in ' joe & Sam'
>> >
>> >but when i do the getParameter for the above i get only till joe
>> >the rest gets truncated.
>> >I will be thankful Any to help in this direction
>> >
>> >
>> >
>> > V.T.R.Ravi Kumar, Engg.(CCX), BHEL
>> > Phone Office +91 1334285260
>> > Mobile +91 1353114861
>> >
>> >
>>
>>==========================================================================
=
>> >To unsubscribe: mailto listserv@(protected)
>JSP-INTEREST".
>> >For digest: mailto listserv@(protected)
>DIGEST".
>> >
>> >Some relevant archives, FAQs and Forums on JSPs can be found at:
>> >
>> > http://java.sun.com/products/jsp
>> > http://archives.java.sun.com/jsp-interest.html
>> > http://forums.java.sun.com
>> > http://www.jspinsider.com
>> >
>> >
>>
>>
> ==========================================================================
>> To unsubscribe: mailto listserv@(protected)
>JSP-INTEREST".
>> For digest: mailto listserv@(protected)
>DIGEST".
>>
>> Some relevant archives, FAQs and Forums on JSPs can be found at:
>>
>> http://java.sun.com/products/jsp
>> http://archives.java.sun.com/jsp-interest.html
>> http://forums.java.sun.com
>> http://www.jspinsider.com
>
> ==========================================================================
>To unsubscribe: mailto listserv@(protected)-
INTEREST".
>For digest: mailto listserv@(protected)
DIGEST".
>
>Some relevant archives, FAQs and Forums on JSPs can be found at:
>
> http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
> http://forums.java.sun.com
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com