This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 9138
    
    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
 
Have you checked out Aspose?
 
subject: How to get session values in struts2
 
It's not a secret anymore!