Fantastic. Someone had showed me something similar earlier, but
I was hung-up on the servlet parameter. I did not know that it
was already available in the action.
Thanks so much.
--- Niall Pemberton <[EMAIL PROTECTED]> wrote:
> createDynActionFormClass(FormBeanConfig) is only for
> DynaActionForm and its
> derivatives - LazyValidatorForm isn't a DynaActionForm (its an
> ActionForm
> thats a DynaBean, but not a DynaActionForm).
>
> If you want to create any kind of ActionForm, then call the
> FormBeanConfig's
> createActionForm() method....
>
> ActionForm form = cfg.createActionForm(servlet);
>
> Niall
>
>
> ----- Original Message -----
> From: "Norris Shelton" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 23, 2005 12:43 PM
>
>
> > Does anyone have an idea on this? I am trying to create a
> > LazyValidatorForm object in code
> > --- Norris Shelton <[EMAIL PROTECTED]> wrote:
> >
> > > FormBeanConfig cfg =
> > > mapping.getModuleConfig().findFormBeanConfig(name);
> > > form =(DynaActionForm)
> > >
> >
>
DynaActionFormClass.createDynaActionFormClass(cfg).newInstance();
> > >
> > > The cfg object has the properties for my dyna bean, but I
> get:
> > > java.lang.IllegalArgumentException: ActionForm is not
> dynamic
> > > at
> > >
> >
>
org.apache.struts.config.FormBeanConfig.getDynaActionFormClass(FormBeanConfi
> g.java:84)
> > > at
> > >
> >
>
org.apache.struts.action.DynaActionFormClass.createDynaActionFormClass(DynaA
> ctionFormClass.java:232)
> > >
> > > Here is my method signature:
> > > public void formDataCopy(ActionMapping mapping,
> > > HttpServletRequest request,
> > > ActionForm form,
> > > String name)
> > >
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
=====
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]