aspose file tools*
The moose likes Struts and the fly likes How to perform DB operations during the session timeout in struts 1.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to perform DB operations during the session timeout in struts 1.3" Watch "How to perform DB operations during the session timeout in struts 1.3" New topic
Author

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

Purushotham Honey
Greenhorn

Joined: Jul 21, 2011
Posts: 6
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

Joined: Oct 29, 2001
Posts: 8873
    
    8

You can have code execute when the session times out with a HttpSessionListener. See this page on the servlet life cycle.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to perform DB operations during the session timeout in struts 1.3