Hi Guys,
I have a question about dynamic form elements that I was hoping someone
could answer.
Basically, I have a page I populate with elements from a database where the
number of entries is unknown.
For each of the rows retrieved, I extract some information and create an
entry in a table on the page. Each of the rows has a text box associated
with it - also generated dynamically. An Iterator tag is used to create the
rows in the table and hence an index for each of the text box elements.
My question is this, when I enter information into the text boxes, I would
like this reflected onto my actionform automatically by Struts. However,
because I don't know how many text boxes will be present on the page, I
can't provide set methods for each one.
So how is it done?
Thanks in advance,
Simon.