Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sessionAware in struts2

 
Rajani Panchumarthy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implement session aware, then get the user object under whatever key you put it in session as.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic