Don't encode the full URL just the values of the parameters.

d.

Hiren Dossani wrote:
hello,
i am receiving url as the request parameter.
the url for example is, "http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=servlet";
i want to use response.sendRedirect() method to rdirect to the url page.
i tried String urlStringFromRequest = URLEncoder.encode(request.getParameter("url"));
and then use, response.sendRedirect(urlStringFromRequest)

but this fails as the urlStringFromRequest value is read as: http%3A%2F%2Fwww.google.com%2Fsearch%3Fhl%3Den

thanks for your help.

--
hiren

___________________________________________________________________________
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





--
David Mossakowski
Instinet Corporation



*******************************************************************************
<<Disclaimer>>

This message is intended only for the use of the Addressee and
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

*******************************************************************************

___________________________________________________________________________
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