This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to fins out the last activity time of the user ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to fins out the last activity time of the user ?" Watch "how to fins out the last activity time of the user ?" New topic
Author

how to fins out the last activity time of the user ?

shyam ji gautam
Ranch Hand

Joined: Sep 17, 2011
Posts: 48
dEAR all

i am writing the code for the webapplication in which i want to access the lst activity time of the user .


the scenario is like this when the user is clicks on button like logoff then i want to access that time and save that time into the databse to check the last activity time of the user



how i will do this

olivier dutranoit
Ranch Hand

Joined: Aug 20, 2011
Posts: 81

Hi,

can't be that hard ...

in your "logoff" method in your servlet, just retreive the current datetime in java.
store it in the database, done...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to fins out the last activity time of the user ?