You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Niall Pemberton <ni...@blueyonder.co.uk> on 2004/08/07 18:19:29 UTC

[Info] Use any kind of DynaBean as an ActionForm

In the Struts Nightly build (since beginning of August) it is now possible
to plug any kind of DynaBean (with a default "empty" constructor) straight
into Struts as an ActionForm. Simply specify the DynaBean class in the
struts-config.xml in the normal way:

<form-bean name="myBean"
      type="org.apache.commons.beanutils.LazyDynaBean"/>

Struts will now "wrap" the DynaBean in a BeanValidatorForm (new class
recently added) which also uses the Struts "validator" framework.

Additionally, if the DynaBean has a DynaClass which implements the
MutableDynaClass interface then it will also configure the forms properties
from those specified in the struts-config.xml (same as for DynaActionForm).



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org