It sounds like you encoded the whole URL, rather than just encoding the values of the query arguments.  That won't work, you need to encode just the query argument values, so that your final URL looks something of the form:  http://host.domain.com/path/file.html?arg1=Encoded+Value&arg2=Encoded%2FSlash
  (*Chris*)
----- Original Message -----
From: M. Amin
Sent: Wednesday, September 25, 2002 3:35 AM
Subject: [SERVLET-INTEREST] request.getParameter() decode a url incorrectly

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 ?
 
Regards,
 M. Amin

Reply via email to