Dean,
Here's the essential code in order to instantiate a DynaActionForm from
within an Action class.
FormBeanConfig fbc = new FormBeanConfig();
fbc.setName("myForm");
DynaActionFormClass dafc =
DynaActionFormClass.createDynaActionFormClass(fbc);
DynaActionForm formBean = (DynaActionForm) dafc.newInstance();
formBean.set("myProperty", "someValue");
request.setAttribute("myDynaForm",formBean);
-Richard
-----Original Message-----
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:48 AM
To: Struts Users Mailing List
Subject: Re: pre-populating DynaValidatorForm
See http://www.mail-archive.com/[EMAIL PROTECTED]/msg96035.html
hth,
Hubert
--- "Dean A. Hoover" <[EMAIL PROTECTED]> wrote:
> I am using struts 1.1, and I am directly instantiating a
> DynaValidatorForm in
> my Action class. I am hesitant to embrace struts 1.2 at this time,
> especially if
> the difference between 1.1 and 1.2 is as large as betwee 1.0 and 1.1. Is
> there
> some other way to accomplish it?
>
> Dean Hoover
>
> Hubert Rabago wrote:
>
> >What version of Struts are you using? How are you instantiating your
> >Dyna*Form? Struts 1.1 didn't really have direct support for
> >instantiating DyanForms from an Action object. Struts 1.2.0/nightly
> >build does. Is it possible that you're using 1.1 and instantiating the
form incorrectly?
> >
> >
> >
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
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]