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

struts

Satya Dasari
Greenhorn

Joined: Apr 25, 2008
Posts: 1
Hi
I am beginner in struts.I am trying to store values in a session.anybody pls help
Thanks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

Satya,
Welcome to JavaRanch!

Every Struts action has the HttpRequest passed in the execute method. You can use request.getSession() to get the session.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
The preferred method is to implement SessionAware interface. For more details, please refer to this.


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts