I'm accomplishing this very thing using Resin's Servlet 2.3 Filter support.
The filter determines the user is not logged in, saves the requesting URI in
a session attribute, and forwards to the login page.   The login action
checks for the existence of the session attribute with the saved URI and
forwards to that upon a successful login.

I'm sure it could be done in a Servlet 2.2 environment also, but would
require more effort.

    Erik


----- Original Message -----
From: "Ralph vd Houdt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 12:09 AM
Subject: re-Logon after session timeout


> Hi All,
>
> I developed a struts application and re-used the checkLogon tag from the
> login example from Ted Husted. It works quite well but when a client loses
> the session in case of a session timeout and a new request is done the
> Action is cancelled because the User object isn't in the session anymore.
Is
> there a possibility to:
>
>     - route the user to the logonform. (And re-add the User object)
>     - after logon, repost the initial request.
>     - continue based on the initial request
>
> Greetings Ralph.
>
>

Reply via email to