FW: [Opensource] Is the use of DefaultForm a common/best
practice on Expresso projects?
Michael Rimov
rimovm at centercomp.com
Thu Apr 3 12:14:02 PST 2003
At 08:11 AM 4/3/2003 -0700, you wrote:
>First off, if you use ActionForms do you utilize the validate method? If
>you how? Do you have a Controller with one state and one form much like
>how Struts works? What I found is that if you create your own form and
>assign it in the struts-config.xml file the minute the initial state is
>called that form's validate method is called (actually it is called
>before the controller is called) Which that kind of breaks the ability to
>have a Controller with multiple states. And if you don't utilize the
>ActionForm's validate method then why are you creating a ActionForm? What
>functionality are you gaining?
Actually, for me, I found it incredibly convenient for multiple page
forms. One app, I had an "OrderInfoBean", and I split the data entry into
multiple pages, one for shipping, one for credit card info. etc.... then
once I had all the information, I processed the whole bean. Saved a lot of
typing for populating the bean from raw parameters.
Peter Pilgrim used a custom Action form to store search results in the
session to provide a caching mechanism for searches.
Neither of these used the validate() function.
HTH!
-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20030403/84eaae1d/attachment-0002.htm
More information about the Opensource
mailing list