I'm assuming that he meant create a new property that is not already defined
in the struts-config.
In which case I think your reply would fail with an property not found type
exception. :-/
One way around this is to have a Hashmap within the hashmapped dynaform.
That will allow you to do something like:
Hashmap myDynaproperties = (Hashmap)myDynaform.get("dynaProperties");
myDynaproperties.set("foo", bar);
Etc.
Another possibility (although I havent tried it) is to operate directly on
the map.
myDynaproperties.getMap().put("foo", bar);
-Tim
-----Original Message-----
From: Carlos Sanchez [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 3:21 PM
To: 'Struts Users Mailing List'
Subject: RE: DynaActionForms
yourdynaform.set("propertyname",propertyvalue);
> -----Mensaje original-----
> De: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 13 de octubre de 2003 19:35
> Para: Struts Users Mailing List
> Asunto: DynaActionForms
>
>
> I have an application with configuration files already.
> Rather than have struts-config configure DynaForms, I would
> like to populate the forms myself.
>
> Does anyone have any experience with how this behaves in struts?
>
> Thanks
>
> Edgar
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]