struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Smith" <m...@incursiontech.com>
Subject RE: DynaActionFormClass.getDynaActionFormClass
Date Mon, 06 Jan 2003 00:36:55 GMT
I am using this for 1.1.b3:

    FormBeanConfig cfg =
mapping.getModuleConfig().findFormBeanConfig(mapping.getAttribute());
    ActionForm form = null;

    if (cfg.getDynamic()) {
      form =
(ActionForm)DynaActionFormClass.createDynaActionFormClass(cfg).newInstance()
;
    } else {
      form =
(ActionForm)Class.forName(mapping.getModuleConfig().findFormBeanConfig(mappi
ng.getAttribute()).getType()).newInstance();
    }


m.

-----Original Message-----
From: Matt Raible [mailto:matt@raibledesigns.com]
Sent: Sunday, January 05, 2003 6:13 PM
To: 'Struts Developers List'
Subject: RE: DynaActionFormClass.getDynaActionFormClass


Has it become as easy as:

DynaActionForm myForm = new DynaActionForm();

?? Man - that would be slick if (true)!

Thanks,

Matt

> -----Original Message-----
> From: Matt Raible [mailto:matt@raibledesigns.com]
> Sent: Sunday, January 05, 2003 2:58 PM
> To: struts-dev@jakarta.apache.org
> Subject: DynaActionFormClass.getDynaActionFormClass
>
>
> This used to work fine with 1.1b2, but now it's not even available:
>
> org.apache.struts.action.DynaActionFormClass
>    .getDynaActionFormClass("messageForm").newInstance();
>
> D:\source\onpoint\src\onpoint\com\onpoint\webapp\action\Course
> CatalogAct
> ion.java:81: cannot resolve symbol
> symbol  : method getDynaActionFormClass (java.lang.String)
> location: class org.apache.struts.action.DynaActionFormClass
>
> .getDynaActionFormClass("messageForm").newInstance();
>
> Any ideas?
>
> Thanks,
>
> Matt
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-dev-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <mailto:struts-dev-help@jakarta.apache.org>
>



--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message