Hello, in a form user is allowed to enter multiple values for a field foo. There can be an unlimited number of those entries. I saw there is the possibility to do this: <logic:iterate property="fooArray" id="foo"> <html:text property="foo" indexed="true"/> </logic:iterate> which should create an entry for each foo value in the form, using public String getFoo(int index) public void setFoo(int index, String value);
I'd like to know if there is a recommanded way to do the following: - have a minimum of 5 entries visible (even if empty) - have something like a 'add 5 more entries' button (wich will simply grow fooArray with nulls) - getRid of the getFooArray() property (and have iterate do something like for(index=0;i<bean.getFooSize();i++) ) Also, what should be the prefered way to handle multiple rows of the entries (bar and baz)? - should getFoo(index) return a FooBean having properties bar and baz and then do <logic:iterate property="fooArray" id="dumb"> <html:text property="foo.bar" indexed="true"/> <html:text property="foo.baz" indexed="true"/> </logic:iterate> - or should i create a getFooBar(index) and getFooBaz(index) on my form and do this: <logic:iterate property="fooArray" id="dumb"> <html:text property="fooBar" indexed="true"/> <html:text property="fooBaz" indexed="true"/> </logic:iterate> Thanks for helping. -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]