The benefit of action chaining, as far as I am concerned, is to promote action reuse.  
With chaining you can make more
fine-grained actions and then chain together those fine-grained actions to create more 
complex behavior.  As an example,
let's say you need to validate that a user is logged in prior to executing something.  
You could create a ValidateUser
action and then reuse it throughout your application.  In addition, if you make a 
change in a fine-grained action then
your change is reflected anywhere that action is used in a chain.

This is just one example, and there may be ways to do things like this already in 
WebWork which I am unfamiliar with.
In addition, there are others who believe that action chaining is not necessarily a 
good thing, but personally I find it
to be very useful (which is why JPublish includes "action chaining").  Finally, with 
the Servlet 2.3 API you can have
similar functionality using filters.  Since WebWork is supposed to be more then a web 
framework though, it may be
beneficial to avoid using servlet-specific features such as this in a WebWork 
application.

Sincerely,
Anthony Eden

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, May 02, 2002 2:51 PM
> To: [EMAIL PROTECTED]
> Subject: [Webwork-user] feature input - [chaining actions]
>
>
> I'm looking at the feature "action chaining" and I need
> some input. Can someone give me a good scenario for
> chaining actions? What are we trying to accomplish here
> that we cannot do now? Or how does it alleviate present
> headaches? Or how will it allow us to do something we
> can't do now?
>
> -Matt
>
>
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> _______________________________________________
> Webwork-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webwork-user
>


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to