If all of your controls have the same name, a String[] form property works, also. (This isn't guaranteed to preserve any order, though.) Other than that and indexed properties, I don't know of a really good way. In my very first web application, before I really knew anything at all, I created a simple page like this where the dynamically created form properties were just named field0, field1, field2, field3, etc. Then, in my server-side code, I had something like the following:
int fieldCount = Integer.parse(request.parameter("fieldCount")); java.util.List fields = new java.util.ArrayList(); for (int i = 0; i < fieldCount; i++) { fields.add(request.getParameter("field"+i); } It wasn't pretty, but it worked, but I'd choose indexed properties over this any day, now that I know they exist ;) What problems exactly are you having with indexed properties? On Apr 5, 2005 7:54 AM, Stéphane Zuckerman <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm trying to submit a form where the user fills a field with a number, > making text fields appear (via Javascript). > > I've looked around for indexed properties, but the examples aren't > addressing my problem, and suppose that the collection where one > iterates is already created... > > Thanks for any advice ! > > Stéphane > > -- > Stéphane Zuckerman > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jeff Beal Webmedx, Inc. Pittsburgh, PA USA --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]