Elena Palanca wrote:
> Hi,
> I would like to maintain the session in my web application with
> URLrewriting.
> Could you show me the flow I have to follow to guarantee the usage of
> this technic?
> I'm using only JSP1.0 without an application server.
> Thanks
> Elena
In the JSP page, wherever you would write something like:
<a href="/somewhere.html">Go somewhere</a>
to create a hyperlink, replace it with something like this:
<a href="<%= response.encodeURL("/somewhere.html") %>">Go
somewhere</a>
This causes the destination of the hyperlink to be encoded with the
session ID if necessary to maintain session state (encoding won't be
necessary if cookies are available).
Craig McClanahan
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".