Rick, Thanks for the feedback. Your point is pre-population, right?
Rick Reumann wrote in <[EMAIL PROTECTED]> >1) I have a DispatchAction that handles related functionality to a >particular task at hand... related CRUD stuff... ie. getEmployees, >updateEmployee, getEmployee etc. There is also a setUp method that >usually doesn't do anything more than call the prep() method in step 3 >below. > This is not page-driven programming for me, and it could be structural code with many switch (if) statement? >2) I don't bother having validation take place automatically. It's >cleaner and easier to maintain by just calling form.validate() from you >particular dispatch method. (You can still use the validation.xml stuff.) > >3) Each DispatchActon usually has a simple prep(..) or setup() method >that you can call to prep your form with any request objects it needs to >have handy (any Lists for drop downs etc). (If validation fails, call it >before returning to the form). > I would like pre-population task more consistence by framework. And I want exisiting Validation framework nicely with it. Not using Validation framework is your choice. >I guess some could argue that the Action class shouldn't have to take >care of preping the view, but to me it's not that big of a deal and on >the flip side you get to stay with the concept of just using Struts 'as >is' out of the box so it's easy for any new developer to follow. I'm all >for tweaking and modifying where necessary, but the above steps seem to Again, I would like prepare task for destination page more consistence. >cover 98% of the simple flow of web applications. There are exceptions >of course, but they aren't that difficult to work around. > Yes, you can do pre-population stuff with current Struts, and if you like that coding, that's fine. I'm not saying that we cannot do this. But I don't like that style as I mentioned in the article, and want to have more consistence way by framework with page-driven programming. If you don't like page-driven, it's your choice. but I would like to know the reason. Someone pointed me to see Echo project for the reason. Regards, Tak -- Tak Yoshida mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]