Support for this idea on the RoadMap for the 1.5.x zone under: "Consider a "smart" action type. The idea is that a command in Struts chain could look at the type indicated by the ActionMapping so both Action classes and ActionCommand implementations are supported. People could then mix-and-match Actions with ActionCommands (or even chains of ActionCommands). We might even support placing an ActionCommand interface on ActionForm, so people could skip having a seperate Action or ActionCommand class. The ActionForm could do it all."
* http://struts.apache.org/roadmap.html A very simple way to do this now is to put an Execute method on an ActionForm and have the Action cast the form and return the form's Execute. With features like "extends", it becomes even easier to customize Struts to use your own default classes and implementation strategies. Once 1.3.x starts to ship, it will become even easier to use Struts like a framework toolkit that you can customize to use whatever strategies your team prefers. After all, the point of a framework like Struts should be to give you a place to stand, not tell you where to go :) -Ted. On 6/23/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > WebWork actions are somewhat like Struts Action and ActionForm > combined: they can transfer request parameters and can be stateful, > like ActionForm, but they also can process input events, like Action. > > I created several rather generic action classes, like DialogAction or > CRUDAction, and now working on WizardAction. In all cases I need to > process events in DispatchAction style, and at the same time I have > session-scoped data, which I store in ActionForm. So, sometimes Action > classes do nothing more, than just receive input command, and channel > it to actual handler in the ActionForm. > > I think that Struts should have WebWork-style action, which can do > both: keep data and process events. What is opinion on that? What is > common pattern to introduce new features in Struts? Should I just > submit the patch to Bugzilla and encourage people to vote? > > Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]