This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Any alternative to this way of session handling in struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Any alternative to this way of session handling in struts?" Watch "Any alternative to this way of session handling in struts?" New topic
Author

Any alternative to this way of session handling in struts?

senthil kumar m
Greenhorn

Joined: Nov 28, 2010
Posts: 16
Hi ,

The following is the flow..

JSP1->MyForm->MyAction->JSP2

If I want to maintain the session,then I will write coding in execute method of MyAction,to put the datas in the session using request object. Is this way of handling the data is good?

or is there any other way to get the datas from jsp 1 to jsp 2,

is it possible to access the data from MyForm

Thanks for your time,

Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
You can certainly use the session. Depending on how long you want to hold on to your variables, you may find that the request object will suffice.

Check out JavaBeans and Scope within the Struts documentation.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Any alternative to this way of session handling in struts?
 
Similar Threads
Problem with session
Collection Storing problem
display form class values on success page
form field population done right
Data from ActionForm without using bean:write