handling Session Time out in Strut


Web tier: servlets, JSP, Web frameworks: handling Session Time out in Strut

  1. handling Session Time out in Strut (1 messages)

    Hi, To handle sesion time-out using Struts, possible ways would be: 1. Create custom RequestProcessor class (Which extend RequestProcessor class of Strut) and in processPreProcess(req,res) method, we write session-time out logic. 2. In each Action class you check session attribute. I think option 1 is best way to do so. Apart from this, are there any best way to achieve this ? Please let me know... Thanks chintan
  2. There are other ways to do it 1. Write a filter and do the session management there 2. You can define SessionContext listener in ur web.xml and that could handle ur session management events The usage depends on what best suits ur webapp design