Hi,
have you looked at map backed forms? Basically you have Hashmap, that stores any number of fields. What you need is something like:
[your form] ... private HashMap properties = new java.util.HashMap(); ... public void setProperty(String key, Object value) { this.properties.put(key, value); }
public Object getProperty(String key) { return this.properties.get(key); }
and in your JSP, all fields need to be named "property(some_name)". In your action you can iterate over the map and process the data.
Hope this helps,
Tom
Stéphane Zuckerman 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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]