You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raghu Havaldar <rh...@shodaka.net> on 2004/03/10 14:53:44 UTC
map-backed action forms - form params not loaded ?
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: map-backed action forms - form params not loaded ?
Posted by Daniel Henrique Alves Lima <em...@yahoo.com.br>.
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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org