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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to