This can be done easily with javascript inside  the main layout
  email me on [EMAIL PROTECTED]  and I will send you the code
   
  skillipedia.com

John De Lello <[EMAIL PROTECTED]> wrote:
  Crap, sorry. Posted to the wrong list. 



-----Original Message-----
From: John De Lello [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 11:15 AM
To: dev@struts.apache.org
Subject: Session Timeout

Hey Everyone,

I am trying to use a custom session timeout JSP. To do this, I extended
"RequestProcessor" and overrode "processPreprocess" and added the following
code:

HttpSession sess = req.getSession(false);

if(sess == null){
// even when the session IS timed out, I never get here.
String uri = "/myapp/sessiontimeout.jsp";
try{
doForward(uri, req, resp);
}catch(Exception ex){}

return false;
}

The problem is, even when I know the session was expired, I never get a null
session. Am I missing something?

Thanks 
John



---------------------------------------------------------------------
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]



                
---------------------------------
 Try the all-new Yahoo! Mail . "The New Version is radically easier to use" – 
The Wall Street Journal

Reply via email to