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:00:30 UTC
[Info] FormBeanConfig is now the "Factory" for ActionForm
Since Struts 1.2.1 the FormBeanConfig has now become the factory for
ActionForms. Although a relatively minor change in makes plugging in custom
ActionForm creation behaviour very straight forward:
* Extend FormBeanConfig and override the createActionForm() method:
public class MyFormBeanConfig extends FormBeanConfig {
public ActionForm createActionForm(ActionServlet servlet) {
return ....
}
}
* configure Struts to use your custom FormBeanConfig in struts-config.xml:
<form-beans type="myPackage.MyFormBeanConfig">
<form-bean name="...">
</form-bean>
</form-beans>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org