Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

large form spanning across multiple jsp's

 
manish ahuja
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All

I would like to know what is the typical practice followed for a scenario wherein there is a huge form input to fill out and the form details are spread across multiple jsp files.
The user interface is something like jsp1 , jsp2, jsp3 all holding the numerous form element data and in the jsp3 the final submit button to the server is displayed.

My question is it a good idea to have a single struts form to be used across mutliple jsp's or should be using multiple struts form objects (1 per jsp).
How is the data collected in jsp1 and jsp2 retained in the session when in jsp3 the final submit takes place.

Let me know your ideas for the same.

Thanks in Advance


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually people either (a) have a form bean containing each page's form properties and keep it in session, (b) have multiple form beans in session, or (c) use hidden form fields to hold the previous page's values. (There are other solutions as well, like keeping the form values in the DB, etc.)

I find the hidden field solution fairly brittle, but that might just be me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic