>>> 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 method passes a redirect URL through the normal session encoding
system.
A redirect URL is the URL used in a redirect response, ie: the URL
the browser redirects to.
The spec is vague because the functionality for session inclusion can
be so different.
Essentially this method puts the session id into the URL somehow.
It must put the session ID into the URL in such a way that your
servlet engine can identify it.
This is where it gets a bit vague.
Servlet-engines might implement many different ways of reading
session ids from URLs.
For example, some use a GET parameter, some use a GET or a POST
parameter depending on the situation and some use extra directory
information.
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.
Nic
Nic Ferrier
Tapsell-Ferrier Ltd
www.tapsellferrier.co.uk
___________________________________________________________________________
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