i tried to encode the url as follows :

String logoutUrl = new
StringBuffer("http://application1.ciranet.com:7777/pls/orasso/.append("orass
o.wwsso_app_admin.ls_logout?p_done_url=")
                       .append(URLEncoder.encode(

"http://m-amin.rayasoftware.com:7777/portal/page?pageid=33,31479&dad=portal&;
schema=PORTAL&mode=16"))
                       .toString();

and when i tried to read the request parameter "p_done_url"  by using
request.getParameter() method   i got the following value
http://m-amin.rayasoftware.com:7777/portal/page?pageid=33,31479dad=portalsch
ema=PORTALmode=16"

in which all the '&' characters in the source url are lost !!!
This is my problem


----- Original Message -----
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 4:46 PM
Subject: Re: request.getParameter() decode a url incorrectly


> Why?  Didn't you get it by telepathy like the rest of us?
>
> Mark
>
> -----Original Message-----
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 8:59 AM
>
> On Wed, 25 Sep 2002, M. Amin wrote:
>
> > Dear All,
> >  I used java.net.UrlEncoder class to encode my url but when i read
> > the decoded url which is sent as request parameter using
> > request.getParameter method i found the url id decoded incorrectly
> > and all the encoded '&' characters are missed.
> > Is there any way to recover such problem ?
>
> I think you need to show us some code.
>
> Milt Epstein
> Research Programmer
> Integration and Software Engineering (ISE)
> Campus Information Technologies and Educational Services (CITES)
> 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
>
>
___________________________________________________________________________
> 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

Reply via email to