It's not a secret anymore!
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "sessionAware in struts2" Watch "sessionAware in struts2" New topic

sessionAware in struts2

Rajani Panchumarthy

Joined: Jan 27, 2009
Posts: 22
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

Joined: Sep 29, 2008
Posts: 12617

Implement session aware, then get the user object under whatever key you put it in session as.
I agree. Here's the link:
subject: sessionAware in struts2
It's not a secret anymore!