Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form bean/jsp design

 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

had a question about my struts enabled web app. I get a number of fields from the database and populate them in the jsp page fields. What i wanted to know was is it better have one form for every jsp or should i keep the form session specific and set all the fields in one form and this form is accessed by all the jsp pages. there are about 75 fields, maybe more.

What is the best way to design this situation.

thank you
pranav
 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also wanted to add that I was using Hibernate and i bring all the fields from the database in a set. so when i update the fields in the database, I will have to set all the fields in the same set before updating.

pranav
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic