aspose file tools*
The moose likes Struts and the fly likes Add parameters to a struts request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Add parameters to a struts request" Watch "Add parameters to a struts request" New topic
Author

Add parameters to a struts request

Pedro Catarino
Greenhorn

Joined: Oct 11, 2013
Posts: 2
Is it possible in struts2 to keep an object in a request from a page to another with something as a request wrapper ? Like a session?
I'd like to have a page that allows user to fill in some fields of my object, but that object has a list of other objects. So the user can add elements to that list on the same page but if he wants to fill in those objects fields he is redirect to other page that allows that. When he submits this second page, he returns to the first one where he can keep adding and editing elements or change my object fields or submit and save my object fields as well as the list of objects and its fields filled in the second page. I'm asking this because user can cancel operation at any time, so I can't persist any data.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Welcome to the Javaranch. You can use sessions with Struts.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
ashish m gupta
Greenhorn

Joined: Oct 04, 2013
Posts: 14
Pedro. IF you have time try to do this in jsp only or servlet only or both . and try to do this in struts2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Add parameters to a struts request