File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Add parameters to a struts request" Watch "Add parameters to a struts request" New topic

Add parameters to a struts request

Pedro Catarino

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

Joined: Oct 29, 2001
Posts: 9189

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

[How To Ask Questions On JavaRanch]
ashish m gupta

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
I agree. Here's the link:
subject: Add parameters to a struts request
It's not a secret anymore!