Yeah, definitely show us what your jsp looks like for your property attribute. If you are doing it like Daniel, everything should be good. If you are doing something like this:
<html:text property="value(test1).someProperty"/> then it won't work when you submit your form unless that HashMap you have in your FormBean is initialized with an object keyed by "test1" and has a property named "someProperty". You might do something like: public Object getValue(String key) { if (!this.params.containsKey(key)) { this.params.put(key,new SomeObjectThatHasA_someProperty_Getter_Setter()); } return params.get(key); } On Wed, 10 Mar 2004 11:15:14 -0300, Daniel Henrique Alves Lima wrote: > > How do look like the properties in your form ? Something like this : > > <html:text property="value(test1)"/> > <html:text property="value(test2)"/> > > ? > > Are the other properties (non map-backed) ok ? > > Raghu Havaldar wrote: > > > Hi, > > > > Am using Struts 1.1, WinXP. > > > > Trying to use map-backed action forms to load a dynamic list of params > > from a > > form. When the form is submitted, the params are not loaded in the > > action form. > > Am following the guidelines as speced in the Struts docs. > > > > Here's a snippet: > > public ParamsForm extends ActionForm { > > private Map params = new HashMap(); > > > > public void setValue(String key, Object value) { > > params.put(key, value); > > } > > > > public Object getValue(String key) { > > return params.get(key); > > } > > } > > > > Have pored over the mailing list archivers. Folks seem to have gotten > > this working. > > > > Any pointers ? > > > > thanks, > > raghu > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] <tataryn:craig/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]