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

How to perform DB operations during the session timeout in struts 1.3

 
Purushotham Honey
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
In my application, i need to perform some DB operations before session invalidates. How can i achieve this during the session timeout? Where should i write the code to perform DB operations?
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have code execute when the session times out with a HttpSessionListener. See this page on the servlet life cycle.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic