Rick Reumann on 06/07/05 19:22, wrote:
In regard to "To redisplay invalid user data it must not be overwritten by pre-loaded data, thus reset() seems as simple and easy way out..", I must be confused on what you see happening that I don't. I don't use the reset to pre-populate the form data and never have a problem with anything being over-ridden when valiation fails (There is the problem of request scoped forms that have lists on the page that need to be reset, but that's another topic:).. and I wrote the solution I like here..http://www.reumann.net/struts/articles/request_lists.jsp ).
I pity the poor noob who asked the original question! Little did he suspect that he would spark off a dialog on advanced MVC design.
This debate has come up before and for me, it is one of the weak points of struts - I remember a couple of years back someone on the list complaining that Struts wasn't 'OO' because the data and logic were seperated into Actions and ActionForms. I remember Craig M. almost agreeing.
Then there was the discussion about View Controllers that would contain the logic to set up the necessary data for dropdowns or forms. I think JSF took this idea and ran with it. (Rick, this option should appear in your list somewhere).
Now there is talk of Struts in the future containing ActionCommands which can be substituted in place of Actions, and strung together in a chain, and presumably can perform View-Controller logic.
I'm very curious to find out about these Commands since I'm not sold on the merits of any current pattern!
Adam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]