Hi,
 
This is what i have understood -
Button Click -> An action class -> Showing a form that needs to be populated.
 
In the action class u may have got the desired data. Assciate the form bean to this 
action class. Doing this u can get a reference to the Action Form in the execute().
Now do -
DynaActionForm form = (DynaActionForm)formBean;
form.set("PROPERTY_NAME", "PROPERTY_VALUE");
 
Doing this, the form bean is populated when u forward to the jsp displaying the 
required values.
Hope this helps....
 
Regards,
Janarthan S

shanmugampl <[EMAIL PROTECTED]> wrote:
Hi,

I have a requirement where i need to populate the values of a form 
from another object, and then again transform the contents of the form 
back to the object once the form is submitted. i.e Say, when i click a 
button, i do some functionalities and have a Properties object as an 
output. The keys in the Properties object are not static. These values 
need to be shown in a form. As the keys retrieved for the current 
operation is not known, i cant define the values in the 
struts-config.xml for the dynaactionclass.

Is it possible to extend the dynaactionclass, and during its init 
or something, iterate the properties object and populate the form. Are 
there any other way of doing it.

Thanks
Shanmugam PL


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

Reply via email to