You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chen Zhi feng <ch...@hoperun.com> on 2002/06/28 10:38:31 UTC

How can I deal with a group of dynamic input?

Hi,
On my jsp page there're a group of textbox for user ot input,
and the numbers of textbox is dynamic,when user needs,there generates more.
for example,there are
<tr>
<input type = text name = testText0>
<input type = text name = textText1>
</tr>
after the end-user click a button "more",there will be another new raw,and
then
the jsp page looks like:
<tr>
<input type = text name = testText0>
<input type = text name = textText1>
</tr>
<tr>
<input type = text name = testText2>
<input type = text name = textText3>
</tr>
so in the FormBean,What should I do to deal with each field for getters and
setters?

Need your help,Can you give me a suggestion?