[Opensource] Is the use of DefaultForm a common/best
practice on Expresso projects?
Michael Rimov
rimovm at centercomp.com
Wed Apr 2 18:45:05 PST 2003
At 02:47 PM 4/2/2003 -0700, you wrote:
>OK, I see now how the DefaultForm is used, mainly via the
>ControllerResponse.getFormCache method however is their a way with either
>the DefaultForm, ControllerForm or the StateForm to utilize the validate
>method in the ActionForm?
>
>Also, seeing how the DefaultForm is used is there any reason to ever
>extend the DefaultForm and create your own form? All it really is, is a
>bean that holds the values of the jsp form.
Actually, don't try to derive from DefaultForm... just create your own bean
and define it in the Struts-config.xml file... you're then off no problem.
<Future Dreaming>
I'd actually love to see DefaultForm more formally integrated into the
ControllerArchitecture. So getParameter(stringName) would actually return
the populated value for the form instead of our own internal
hashtable. Would go a long way for good integration with Validator.
</Future Dreaming>
HTH!
-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20030402/663a52aa/attachment-0002.htm
More information about the Opensource
mailing list