the tag library code from husted.com does not compile w/struts build from
20010625.
pete,
doesnt this code :
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 11:02 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: multiple form fields
If you want to iterate through a collection, with a text field for each
element,
then the additions I made to the Struts tag will do this for you.
It automatically produces numbered input fields, when you add "indexed=true"
to
the tag ie
<html:text name="parameter" property="value" indexed="true"/>
There are various previous posts about this, including the code, or the code
is
available on Ted Husted's site.
Cheers,
Dave
"Paul Beer" <[EMAIL PROTECTED]> on 06/28/2001
01:16:57 PM
Please respond to [EMAIL PROTECTED];
Please
respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: David Hay/Lex/Lexmark)
Subject: multiple form fields
could someone please send some sample code of sending multiple text fields
of the same name to a form bean ? i looked through the mail archives and
see many threads involving this issue and no clear solution . how do i have
a form bean represent multiple items (a string array in servlet land)
without numbering the input fields "item#i#" "item2" etc . ? i have tried
passing multiple input fields but struts does not seem to pick up that the
multiple input fields are an array of values instead of one single value.
please send sample code.
i know this is simple but it is annoying me. if someone has answered this
previously please send a link to a good thread where this is resolved.
thanx.
-paul