aspose file tools
The moose likes Struts and the fly likes Better way to check user session Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Better way to check user session" Watch "Better way to check user session" New topic
Author

Better way to check user session

Erap Estrada
Ranch Hand

Joined: Nov 08, 2006
Posts: 92
Hello guys, I just wonder if there's a better way to check if the user is logged in and has a valid session.

Normally, I do this on my Action class:



Now, I wonder if there's a way to do it dynamically like how Struts do it in form validation. Just set it on xml file and good to go.

Thank you in advance.


SCJP with 98% by...
Craig Bayley
Ranch Hand

Joined: Sep 27, 2007
Posts: 46
Implement a Filter.
Navi Lock
Ranch Hand

Joined: Jul 29, 2003
Posts: 39
Hi Craig,
Could you elaborate please ..
A code snippet would be great.

Thanks,
-Navi
Erap Estrada
Ranch Hand

Joined: Nov 08, 2006
Posts: 92
what kind of filter? Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Better way to check user session
 
Similar Threads
Browsing with the back button
Checking to see if a session has expired
Load objects on session upon restart
Throwing server errors
Redirection after session Timeout.