This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes retreiving the session attribute value from anoher Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "retreiving the session attribute value from anoher Action class" Watch "retreiving the session attribute value from anoher Action class" New topic
Author

retreiving the session attribute value from anoher Action class

lokesh simha
Greenhorn

Joined: May 23, 2010
Posts: 1
Hi ,
i am writing the program using struts. i want to access the variable dat is declared/ in an action class from another action class. i am using request.getSession().setAttribute("DeptId", Dept_ID); and corresponding getAttribute() method to access that variable, but i am not able to retrieve that variable/attribute value value, please help me friends even though it seems to be very silly problem am struggling a lot to get it..please please

thanks in advance
Lokesh
Fred Artes
Ranch Hand

Joined: Nov 14, 2008
Posts: 43



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retreiving the session attribute value from anoher Action class
 
Similar Threads
Use of a page-scoped attribute
Scripting with JSTL Core tags.
how to get the setter and getter value in strut2
How to print java Map name/value pair through JSON object in JS
accessing <s:param> values in action