> -----Original Message----- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 10:26 AM > To: Struts Users Mailing List > Subject: Re: A couple of questions > > > >Interesting, I also build commercial apps, and try to use > wizards whenever > possible to keep things >simple for my users.... > > We prefer to keep things easy for us also for maintainability > as we look at > the project long life term. > > > > >And therefore a whole hell of a lot easier to modify and change as > requirements change. Which is somehting else that is very > nice about action > forms... they are >incredibly easier to maintain then doing > it by hand... > add a new field... add it to the jsp page, to the Action > Form, the model and > you're done if you have no >business rules that go with it. > Validation? > just add the rules to the validation.xml file. > > Yeah but this is my point, you see? Normally I'd add a field > to the JSP > field and that's all. I'd still have to add a new field to > the dynaform > declaration, to the validation...Can you see how easily one > simple field > propagates the amount of activities just because of the > ActionForm in the > middle?
Not really... your way you have to add the code to the action to do the validation and extraction as well as the JSP, model and SQL. The ActionForm way. I change the JSP, the Form, The model and the SQL. If I'm using Dyna Forms then the only code I touch is the VO. Everything else is handled in config files. If I'm using Hibernate then I only have to worry about the field being in the database. Which would you rather maintain, 1-20 lines of code, or 2-3 config files? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]