hi, i have a same problem but i tried to store in a array and create a set and get method accordingly, but will gives problem again if u r retrieving same value for displaying in the same form if any errors in the input. plz let me know if u get the solutions
Siraj DH ----- Original Message ----- From: Derek Wayland <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 18, 2002 2:54 PM Subject: Struts Form Fields > Hi, > > I have a large amount of fields in the JSP that are loaded from XML inside > init of the Controller servlet. > > Presently I have FORM 'fields declarations, setters() and getters()' for > every field on the JSP. > This is very tedious as the items on the different forms can increase and > decrease. every time I need a new > field, (for example, an item has been added for the online sales list), I > have to add a new field, new setter() and getter(). > > I wonder if anyone has a better solution. > with a servlet I could just get a list of parameters and then look through > the ones that were selected. with struts I have to give each field a unique > name, and corresponding setters and getters. > > I have thought alot about a better approach here, but I always come up > against the same limitation. > is anyone have the same kind of problem; what did you do to solve it? > > your help is appreciated. > > ...dmw > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

