wood burning stoves 2.0*
The moose likes Struts and the fly likes sessionAware in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "sessionAware in struts2" Watch "sessionAware in struts2" New topic
Author

sessionAware in struts2

Rajani Panchumarthy
Greenhorn

Joined: Jan 27, 2009
Posts: 22
Hi,
How do I get the user id that is logged in to the application across different modules in the application.
Using sessionAware interface in struts2, can anyone help me in getting the userid.

Thanks in advance.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Implement session aware, then get the user object under whatever key you put it in session as.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: sessionAware in struts2
 
Similar Threads
validation in struts2
Getting Session in Struts2
Struts2 -- A Query with setters and getters in the Action class.
struts2 session
Session handling in Struts2