I have a Struts form which can contain zero to many instances of a set of
fields (depending upon the number of rows in database table).
For example:
row1field1 row1field2 row1field3
row2field2 row2field2 row2field3
. . .
rowNfield2 rowNfield2 rowNfield3
So when the form is submitted, all fields will be correctly updated in the
Form bean/Form action.
The number of rows will be dependent on a database table - there can be a
variable number of rows.
I've never implemented a form containing a variable number of fields, so my
questions are:
1) How to I define the ActionForm Bean to store these multiple sets of data
(can I just use arrays?)
2) How do I output the fields (text) in the JSP (do I use the Iterate logic
tag?)
I'm not concerned about how I go about reading/writing this information
from/to the database, I can figure that out for myself, its just getting an
example which demonstrates the above.
Thanks
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]