Hi, Just a thought. Maybe you can put a collection in your FormBean each time the user clicks more add an element to this collection. In the jsp use the <logic:iterate> tag to loop thru the collection building your input tags dynamically. The logic:iterate tag also has the IndexId which can be handy to use. I never tried this in practice yet, but maybe it is of any help.
Kind regards, Kees -----Original Message----- From: Chen Zhi feng [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: 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? -- The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>