>>> Geoff Soutter <[EMAIL PROTECTED]> 6/21/99 9:09:12 AM >>>
>Does anyone know what exactly this method of HttpServletResponse is
supposed
>to do?

>The definition in the spec is extremely vague.


The call is provided so you don't have to worry about it. Just path
all your redirection URLs through encodeRedirectURL() and you're
normal URLs through encodeURL() and you're laughing.


It is no accident that encodeRedirectUrl() encodeRedirectURL() are spelt
differently
encodeRedirectUrl() is now deprecated and should not be used as it has a bug
in it.

Use encodeRedirectURL() at all times. If you are using a Session object for
session tracking
it sorts out the process of adding the sessionID to the URL for you,
regardless of whether the
sessionID comes from a cookie (no sessionID is then encoded onto the URL) or
as a parameter.

As this is all automatic, using encodeRedirectURL() does mean you are
laughing.

Andy Bailey

___________________________________________________________________________
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