Suggestion:

In your filter, stick the current timestamp as an attribute in the
httpSession.

Before you do that though, check the timestamp that got stuck there on
the last request. If the delta > threshold, bounce the user to the right
page.

If you *really* wanted, you could generate an ActionError inside of the
filter I suppose, so the login page displays the reason he wound up
there, but I've never tried that, and my newbie self kind of shudders at
that.

-Joe

> -----Original Message-----
> From: Arne Brutschy [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 20, 2003 4:11 AM
> To: [EMAIL PROTECTED]
> Subject: how to create an error message with a filter
> 
> 
> Hello,
> 
> I want to create a error message with my authentication 
> filter. The filter checks for an idle timeout. If this 
> occours, it invalidates the session. At this point, the 
> filter should create a error message, i.e. "you have been 
> idle for too long!". After that the filter redirects to the 
> login jsp (as always if the session is not valid). The jsp 
> page should use the common struts tags, to display this error message.
> 
> How can I do this? how can I store such a message in my 
> request? How can I forward that to my redirect?
> 
> Regards,
> Arne
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to