Alper Atici wrote:

> Hi everybody,
> I'm using JSDK2.1 and I want to handle session tracking using URL rewriting.
> However, I could not figure out the difference between encodeURL() and
> encodeRedirectURL().
> Which one is used when? Could somebody help?
>
> Thank you
>
> -alpair
>

Use encodeRedirectURL() when you are doing a sendRedirect() call:

    response.sendRedirect(encodeRedirectURL("/otherpage.html"));

Use encodeURL() everywhere else.

Craig McClanahan

___________________________________________________________________________
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