aspose file tools*
The moose likes Struts and the fly likes How to get session values in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to get session values in struts2" Watch "How to get session values in struts2" New topic
Author

How to get session values in struts2

saravanan Senthil
Greenhorn

Joined: Jan 11, 2013
Posts: 11
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

Joined: Oct 29, 2001
Posts: 8997
    
    9

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.


[How To Ask Questions On JavaRanch]
saravanan Senthil
Greenhorn

Joined: Jan 11, 2013
Posts: 11
Joe Ess,
Hi I need session values in my action class and these action class are used by ajax call in jquery
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get session values in struts2