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

How to get session values in struts2

 
saravanan Senthil
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to struts2 I am working with session with session aware.while login I set values in sessionmap and i need these values in my other java class how do i get session values.please help me
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the "other class"? An action? You would need to make it session aware. If the other class is a business logic class or data access object, you'd need to pass the information from the action.
 
saravanan Senthil
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Ess,
Hi I need session values in my action class and these action class are used by ajax call in jquery
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic