I'm currently in the middle of a project at work that makes heavy usage of CoR (it's only a very small webapp component, the vast majority of it is business process, and that's a rather large piece). I am using the CoR implementation in Java Web Parts rather than Commons Chain because it has some added capabilities I need, but that's only a minor point.

This project is conceptually very simple: parse a couple of input files, for each record in them create an object, then run that object through a long series of rules and annotate in various ways along the way, or possibly reject it at certain points. As usual, the devil is in the details though... many of those rules are incredibly complex in and of themselves. Also, one of the key requirements is to be able to quickly and easily change the rules, and to customize the processing for different clients. CoR makes this all very easy. And, because the Commands are so simple, they can be very easily unit-tested, which is a big plus. It wouldn't have been too tough to do this without CoR, but it makes it considerably more elegant IMO.

Coming back to chains in Struts, I think it will be interesting to see how people wind up using it... I can see numerous opportunities to modify the request processing chain for various reasons (my own StrutsWS project has already been ported to 1.3 as just one example)... What will be more interesting is how people use the capability OUTSIDE the RP cycle... well, an Action is still technically part of the RP cyclce, but I think you know what I mean :) What will people come up with in terms of using Commands instead of Actions? I'm interested to see where that leads.

Frank

Paul Benedict wrote:
Subject line says it all.

I've been contemplating this topic. The best answer I can give here is that in 
Struts 1.3, you
really don't have to ever deal with an Action class at all - use ChainAction as 
an entry point
into your chains. But how would you model a real world application using the 
chains? Let me guess:
see the example applications :-) If there are more brilliant answers, I'd like 
to hear them.

Thanks!!
Paul


                
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



.


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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

Reply via email to