My initial impression is that you should avoid having FormBean implement another
interface - why not just add the fields to an ArrayList which is property of the
form, and iterate through that?
Cheers,
Dave
Struts Newsgroup (@Basebeans.com) <struts%basebeans.com on 04/30/2002 12:25:01
PM
Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: David Hay/Lex/Lexmark)
Subject: Re: Can I submit multiple fields of the same name?
Subject: Re: Can I submit multiple fields of the same name?
From: Vic Cekvenich <[EMAIL PROTECTED]>
===
Yes.
One implementation is to let you FormBean implement iterator interface
and and in the iterate tag use the index property.
I will in a few weeks update my example DB app to do this so you can see
the code.
Vic
Mike Poole wrote:
> Hello. I am writing an application where the form inputs will be generated
> from a database in a previous request. For example, one call to Struts will
> result in a form being returned that contains ten (or any number of) check
> boxes named "problem". The values will be tokens that uniquely identify
> each of the problems. The user then selects which problems he wants to
> explore, and hits submit. Multiple selections are allowed.
>
> What happens when multiple fields of the same name get submitted? Can the
> form bean handle this? Will I be able to determine in my action class which
> ones were clicked?
>
> Thanks,
> Mike
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>