HI,
    There are two URLEncoder classes. Use the encode
method from the class which is in java.net.* package.
It should work fine.
Sreenu

--- Nic Ferrier <[EMAIL PROTECTED]> wrote:
> >>> "Vinay K.V. Menon"
> <[EMAIL PROTECTED]> 20-Jun-00
> 11:31:02 AM >>>
>
> >when I try to do an encodeUrl of that string and a
> >sendRedirect it seems to be failing. Here is what I
> >am trying to do,
>
>
>response.sendRedirect(response.encodeUrl(java.net.URLEncoder.encode(sURL)));
>
> Try this:
>
> response.sendRedirect(
>     URLEncoder.encode(
>
> response.encodeRedirectURL(stringtoencode)));
>
>
>
> Nic Ferrier
>
>
___________________________________________________________________________
> 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


__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/

___________________________________________________________________________
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