DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31423>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31423 Lazy ActionForms ------- Additional Comments From [EMAIL PROTECTED] 2004-10-12 14:22 ------- from http://www.niallp.pwp.blueyonder.co.uk/ snip= 1.2.4 Scenario Four: Using LazyDynaBean as an ActionForm in Struts It is possible to use a LazyDynaBean directly in Struts - simply specify it in the struts-config.xml: <form-bean name="myForm" type="org.apache.commons.beanutils.LazyDynaBean"/> Struts will now automatically wrap this DynaBean in a BeanValidatorForm to create an ActionForm for the mapping. In fact you can do this with any DynaBean or even a POJO java bean (as long as they have an empty default constructor). =snip It is extremely usefull to be able to use a pojo as a form bean and not having to inherit from a concrete class. The source code is here : http://www.niallp.pwp.blueyonder.co.uk/lazyforms.zip I admit that that page is a little difficult to follow but his code is sound, I have used it myself. --b --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
