Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes form bean/jsp design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "form bean/jsp design" Watch "form bean/jsp design" New topic
Author

form bean/jsp design

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
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

Joined: Oct 27, 2003
Posts: 258
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
 
 
subject: form bean/jsp design