I don't see the need for a new type of Action, there is no limitation to
what methods you ADD to an ActionForm, so you may choose to do your business
logic implementations in the ActionForm itself and then the various
Action::execute() methods would just marshal the arguments and call the
methods on the ActionForm that is passed in.  We do it that way whenever we
need to, but we also use helper classes that have the methods to act upon
the data in the ActionForms and call them from the Action Classes or from
Axis Web Services.  I am quite sure Drew would agree with me that if you
prefer WebWork or Tapestry use it, don't try to make Struts more like them.

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-----Original Message-----
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 23, 2005 2:28 PM
To: Struts Users Mailing List
Subject: Form-Action combo

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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to