File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Timeout in Struts1.3

 
hariharan jayaprakash
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have developed one small application based on struts1.3. I wanna keep session timeout so that It has to forward to homepage. I tried
<session-timeout> in WEB.XML.

I kept the page for one minute without accessing, and after i tried to access, i am able to access again..
I want to forward to home page after one min.

how can i do that?.
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello,

You can create an authentication layer in your application. Before processing any request from the client the application should check whether the user has been authenticated. In your case you could then forward to the correct Action/JSP page based on SUCCESS/FAILURE returned by this layer/logic.

Cheers,
Raj.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic