Instead of creating name and address fields as your form fields,Prepare a bean class eg empBean with these fields and 'collection' of this new bean as ur action forms fields.Struts has documentation on how to use collections as actionForm variables. Hope this helps u.
Best luck, On Sat, 06 Aug 2005 Tony Smith wrote : >Hi, > >Suppose I have a UserBean: > >class UserBean{ > String name, > String address, > ... > > public String getName() >... >} > >In one jsp page, I want to input multiple people beans >and send back to server. The jsp UI is something like: > >People 1: >Name [ ] address [ ] >People 2: >Name [ ] address [ ] >People 3: >Name [ ] address [ ] > >[Submit Button] > >How do I design my ActionForm and Action? > >Thanks, > > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >