Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Add parameters to a struts request

 
Pedro Catarino
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Javaranch. You can use sessions with Struts.
 
ashish m gupta
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic