From: "Emmanuel.Leguy" [EMAIL PROTECTED]>
Wendy wrote:
In Action code, before forwarding to the JSP, look up the Person object and pre-populate the form bean's 'name' property.

Is it possible with a dynaActionForm?

Sure.
DynaActionForm dForm = (DynaActionForm) form;
dForm.set( "name", person.getName() );

You can also use BeanUtils to copy properties from the Person to the Form bean:
BeanUtils.copyProperties( dForm, person );

--
Wendy

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

Reply via email to