Or you could write a RequestProcessor and override the processPreprocess method with 
something like this:

HttpSession session = request.getSession();
if ( (session == null) || (session.getFavouriteObjectInSession == null) ) {
        //use Response object to redirect to login page with error set;
}

Geeta

> -----Original Message-----
> From: Asim Ghosh [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 30, 2004 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: redirect to login page with error message on the jsp page
> 
> 
> hello,
>  
>   can anybody tell me how to redirect to login page with 
> error message on the jsp page.  It should display error 
> message "You session has timed out" on the login page.
>  
> in web.xml
>  
> <session-config>
> <session-timeout>30</session-timeout>
> </session-config>
>  
>  
> 
>               
> ---------------------------------
>  ALL-NEW Yahoo! Messenger - all new features - even more fun!  
> 

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

Reply via email to