You'll get a better response by posting this to [EMAIL PROTECTED]
tim jeremicz wrote:
we are iterating through an arraylist of objects in our jsp that we get from
session.
we then display the object's elements in text fields for a user to manipulate
and submit.
the problem is: what do you name the form fields when you have multiple
objects. each object will have the same
elements (a name element, description element...). when the form is submitted,
how do you call the setter method
on each form field for each object so you can access it in the ActionForm you
are submitting to.
Note: 1 solution is to loop through the collection in the jsp and name the form
fields and then append the # of
your iteration, but our arraylist could have as many as 20 objects. so this
would require 20 setter methods for
just 1 element. (setName1(), setName2().....)
any advise would be greatly appreciated.
tj
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]