This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 9152
    
    9

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


[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
 
It's not a secret anymore!