Well, I found an answer to my question on my own. I had a heck of a time
finding it via Google, so I thought I'd post here in case someone else
had a similar problem.

> I have a DynaValidatorForm I want to pre-populate with info 
> from a database. I have no problem doing this with a 
> non-dynamic form. My code looks like this:
> 
> DynaValidatorForm newForm = new DynaValidatorForm(); 
> newForm.set("personNameInfo","firstname",person.getFirstName());
> request.setAttribute("personNameInfoForm",newForm);

This does work:
DynaBean newForm =
DynaActionFormClass.getDynaActionFormClass("personNameInfo").newInstance
();
newForm.set("firstname",person.getFirstName());
request.setAttribute("personNameInfoForm",newForm);

Paul Vincent Craven


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

Reply via email to