Re: Struts-chain Behavior Discussion

2003-10-18 Thread john sessler
First and foremost, thank you for responding. Further comments below. Here is why I believe that the code is of interest to the Struts community: There are many extensions of interest to the Struts community, and we maintain a resource page to help people find them. In practice, when an

RE: Struts-chain Behavior Discussion

2003-10-17 Thread john sessler
Hello, I get the distinct feeling that the committers point of view on the controller component of Struts is quite similar to Henry Fords point of view on the color of his cars. ...The controller component can be based on any arqitecture at all as long as its Command Chains... I realize that

Re: Struts-chain Behavior Discussion

2003-10-17 Thread Ted Husted
Here is why I believe that the code is of interest to the Struts community: There are many extensions of interest to the Struts community, and we maintain a resource page to help people find them. In practice, when an extension becomes very popular within the community, and it's obvious that

Re: Struts-chain Behavior Discussion

2003-10-16 Thread Jing Zhou
- Original Message - From: PILGRIM, Peter, FM [EMAIL PROTECTED] To: 'Struts Developers List' [EMAIL PROTECTED] Sent: Monday, October 13, 2003 5:39 AM Subject: RE: Struts-chain Behavior Discussion *Question of Architecture* Does this mean that we have solved the hideous Action

Re: Struts-chain Behavior Discussion

2003-10-16 Thread Ted Husted
Joe Germuska wrote: Speaking of chains, given Ted's suggestion about just plugging in another Action class as part of the ForwardConfig -- if that were to be the case, I think I'd just be more interested in a Commons-Chain/Struts-Chain solution -- which might be better anyway, as it's more

Re: Struts-chain Behavior Discussion

2003-10-16 Thread Ted Husted
Jing Zhou wrote: Commons-chain is not intended to solve that debate topic originally. Last year, people found when they have two RequestProcessor(s), say A and B, if they need to design a new RequestProcessor C that has methods from both A and B, the best they can do is to let C extend one of

RE: Struts-chain Behavior Discussion

2003-10-16 Thread PILGRIM, Peter, FM
-Original Message- From: Jing Zhou [mailto:[EMAIL PROTECTED] - Original Message - From: PILGRIM, Peter, FM [EMAIL PROTECTED] To: 'Struts Developers List' [EMAIL PROTECTED] Sent: Monday, October 13, 2003 5:39 AM Subject: RE: Struts-chain Behavior Discussion *Question

Re: Struts-chain Behavior Discussion

2003-10-16 Thread Craig R. McClanahan
PILGRIM, Peter, FM wrote: -Original Message- From: Jing Zhou [mailto:[EMAIL PROTECTED] - Original Message - From: PILGRIM, Peter, FM [EMAIL PROTECTED] To: 'Struts Developers List' [EMAIL PROTECTED] Sent: Monday, October 13, 2003 5:39 AM Subject: RE: Struts-chain Behavior

RE: Struts-chain Behavior Discussion

2003-10-16 Thread john sessler
Pilgram, Peter wrote: -Original Message- From: Jing Zhou [mailto:[EMAIL PROTECTED] - Original Message - From: PILGRIM, Peter, FM To: 'Struts Developers List' Sent: Monday, October 13, 2003 5:39 AM Subject: RE: Struts-chain Behavior Discussion *Question

Re: Struts-chain Behavior Discussion

2003-10-16 Thread Jing Zhou
- Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 4:37 AM Subject: Re: Struts-chain Behavior Discussion Jing Zhou wrote: Commons-chain is not intended to solve that debate topic originally. Last

Re: Struts-chain Behavior Discussion

2003-10-16 Thread Jing Zhou
- Original Message - From: PILGRIM, Peter, FM [EMAIL PROTECTED] To: 'Struts Developers List' [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 5:09 AM Subject: RE: Struts-chain Behavior Discussion -Original Message- From: Jing Zhou [mailto:[EMAIL PROTECTED

Re: Struts-chain Behavior Discussion

2003-10-16 Thread Ted Husted
PILGRIM, Peter, FM wrote: Suppose team T1 invents a generic web search engine component. Let say another team T2 wanted to use that component, say embed it is in own JSP views using say Tiles. How does the search component forward or transfer control to the external component that T2. One way

RE: Struts-chain Behavior Discussion

2003-10-13 Thread PILGRIM, Peter, FM
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: 06 October 2003 17:25 To: Struts Developers List Subject: Re: Struts-chain Behavior Discussion Paul Speed wrote: I haven't looked at the implementation yet (I intend to when I have more than 2

R: Struts-chain Behavior Discussion

2003-10-13 Thread Manganotti Francesco \(USI\)
I wouldn't chain actions, but tasks executed by actions. Francesco -Messaggio originale- Da: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED] Inviato: lunedì 13 ottobre 2003 12.39 A: 'Struts Developers List' Oggetto: RE: Struts-chain Behavior Discussion -Original Message- From

Re: Struts-chain Behavior Discussion

2003-10-13 Thread Ted Husted
PILGRIM, Peter, FM wrote: Does this mean that we have solved the hideous Action Chaining debate? In theory an Struts Action could be refactored to be a type of ``Command'' and therefor Actions could be chained. I think the Chain package will make it easier for people to do the Right Thing. The

Re: Struts-chain Behavior Discussion

2003-10-08 Thread Jing Zhou
I could be convinced if I see a possible mechanism that deals with the command coupling problem and state storage problem. Jing, it is sounding more and more like what you want is a scripting control flow language expressed in XML. That is absolutely, totally, *not* what

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Jing Zhou
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Monday, October 06, 2003 7:25 PM Subject: Re: Struts-chain Behavior Discussion I actually think this is better, because you can customize *just* the B1 path or *just

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Ted Husted
Craig R. McClanahan wrote: * The way it's currently implemented -- ValidateActionForm conditionally branches to a separate chain on validation failure (servlet-validation-failure in the current config file), and [returns true to] abandon the remainder of the original chain. The phrase

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Ted Husted
Craig R. McClanahan wrote (10/4/2003 2:02 PM): So, implementing this as a single chain would require ValidateActionForm to the success/failure state of the validation into the Context -- easy to do -- and three commands must now (inside their implementation -- the Chain does not know anything

RE: Struts-chain Behavior Discussion

2003-10-07 Thread Edgar P Dollin
, October 06, 2003 7:57 PM To: Struts Developers List Subject: Re: Struts-chain Behavior Discussion Jing Zhou wrote: - Original Message - From: Paul Speed [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Monday, October 06, 2003 5:58 PM Subject: Re

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Craig R. McClanahan
Ted Husted wrote: Craig R. McClanahan wrote: * The way it's currently implemented -- ValidateActionForm conditionally branches to a separate chain on validation failure (servlet-validation-failure in the current config file), and [returns true to] abandon the remainder of the original chain.

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Jing Zhou
It's not so much about complexity as it is readability. The complexity in my message refers to the verboseness of the chain-config.xml file. What I am looking for is a possible simpler syntax to do the job. If I care what Process Action is then I can see the detail. Goto's were deemed

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Craig R. McClanahan
Jing Zhou wrote: It's not so much about complexity as it is readability. The complexity in my message refers to the verboseness of the chain-config.xml file. What I am looking for is a possible simpler syntax to do the job. If I care what Process Action is then I can see the detail.

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Jing Zhou
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 2:22 PM Subject: Re: Struts-chain Behavior Discussion You do not need to determine Class4 was always run or not, actually it is determined

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Jing Zhou
In the example, the L1 labeled chain is invoked by Class1 if it returns false. Sorry, it should be changed to if it returns true (to terminate the original chain instance). Jing - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Struts-chain Behavior Discussion

2003-10-07 Thread Craig R. McClanahan
Jing Zhou wrote: - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 2:22 PM Subject: Re: Struts-chain Behavior Discussion You do not need to determine Class4 was always run or not, actually

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Jing Zhou
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 1:02 PM Subject: Re: Struts-chain Behavior Discussion They could indeed be made part of the chain, and checking the current state to see

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Paul Speed
] Sent: Saturday, October 04, 2003 1:02 PM Subject: Re: Struts-chain Behavior Discussion They could indeed be made part of the chain, and checking the current state to see if it's appropriate for me to do anything is certainly more in the spirit of the original CoR pattern. However, I

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Paul Speed
] To: Struts Developers List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 1:02 PM Subject: Re: Struts-chain Behavior Discussion They could indeed be made part of the chain, and checking the current state to see if it's appropriate for me to do anything is certainly more in the spirit

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Craig R. McClanahan
. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 1:02 PM Subject: Re: Struts-chain Behavior Discussion They could indeed be made part of the chain, and checking the current state to see if it's appropriate for me to do anything

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Craig R. McClanahan
Jing Zhou wrote: - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 10:37 AM Subject: Re: Struts-chain Behavior Discussion Jing Zhou wrote: For me, Simple thing should be simple is the top rule

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Jing Zhou
- Original Message - From: Paul Speed [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Monday, October 06, 2003 3:40 AM Subject: Re: Struts-chain Behavior Discussion (1) LookupCommand (2) ExceptionCatcher (3) SelectLocale (4) Process Action

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Craig R. McClanahan
(i.e. look at the input parameter). -Paul Craig Jing Zhou wrote: - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 1:02 PM Subject: Re: Struts-chain Behavior Discussion They could indeed

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Paul Speed
Jing Zhou wrote: - Original Message - From: Paul Speed [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Monday, October 06, 2003 3:40 AM Subject: Re: Struts-chain Behavior Discussion (1) LookupCommand (2) ExceptionCatcher (3) SelectLocale (4

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Jing Zhou
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Monday, October 06, 2003 11:26 AM Subject: Re: Struts-chain Behavior Discussion Looks like you are asking less while I am asking more :-) Exactly. More == Bloat

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Jing Zhou
- Original Message - From: Paul Speed [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Monday, October 06, 2003 5:58 PM Subject: Re: Struts-chain Behavior Discussion Jing Zhou wrote: - Original Message - From: Paul Speed [EMAIL PROTECTED

Re: Struts-chain Behavior Discussion

2003-10-06 Thread Craig R. McClanahan
Jing Zhou wrote: - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Monday, October 06, 2003 11:26 AM Subject: Re: Struts-chain Behavior Discussion Looks like you are asking less while I am asking more

Re: Struts-chain Behavior Discussion

2003-10-05 Thread john sessler
Hello, You may have noticed the posts concerning the request for comments on Action Wrappers which appeared in Aug and a couple of days ago. Action wrappers work with the existing RequestProcessor (1.1) but a much cleaner solution involves a (currently) minor refactoring of the

Re: Struts-chain Behavior Discussion

2003-10-05 Thread Jing Zhou
- Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 10:37 AM Subject: Re: Struts-chain Behavior Discussion Jing Zhou wrote: For me, Simple thing should be simple is the top rule that supersedes any

Re: Struts-chain Behavior Discussion

2003-10-04 Thread Jing Zhou
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Developers List [EMAIL PROTECTED] Sent: Friday, October 03, 2003 7:09 PM Subject: Re: Struts-chain Behavior Discussion Jing Zhou wrote: It looks to me that I threw a disturbing idea. Now I change

Re: Struts-chain Behavior Discussion

2003-10-04 Thread Ted Husted
Craig R. McClanahan wrote: In terms of the chain implementation of the request processing lifecycle, this is just an unconditional command in the chain (it's implemented in o.a.s.c.servlet.PerformForward). No skipping or stepping is requried. See

Re: Struts-chain Behavior Discussion

2003-10-04 Thread Ted Husted
Jing Zhou wrote: For me, Simple thing should be simple is the top rule that supersedes any programming practices. Some of might say that this *is* a programming practice. Some might also couch it as start with the simplest thing that can possibly work, and then let practice be your guide. *

Re: Struts-chain Behavior Discussion

2003-10-04 Thread Craig R. McClanahan
Ted Husted wrote: Craig R. McClanahan wrote: In terms of the chain implementation of the request processing lifecycle, this is just an unconditional command in the chain (it's implemented in o.a.s.c.servlet.PerformForward). No skipping or stepping is requried. See

Struts-chain Behavior Discussion

2003-10-03 Thread Jing Zhou
It looks to me that I threw a disturbing idea. Now I change the subject for more discussions of different opinions. Craig mentioned the go to statement in programming languages and hinted it could be an evil if Chain implement the semantics of go to (I just called it jump behavior). If we

Re: Struts-chain Behavior Discussion

2003-10-03 Thread Ted Husted
Jing Zhou wrote: * I studied several workflow engines (not page flow stuff, they manage persisted workload for people) They all implement, one way or another, the jump behavior. I could not see they violate the OO design principles as high level regulators. I believe Chain is suppose

RE: Struts-chain Behavior Discussion

2003-10-03 Thread Tom Drake
Here, I would refer you to commons 'functor' which contains all manner of classes for implementing logic in terms of object instances. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 3:57 PM To: Struts Developers List Subject: Re: Struts-chain

Re: Struts-chain Behavior Discussion

2003-10-03 Thread Craig R. McClanahan
Jing Zhou wrote: It looks to me that I threw a disturbing idea. Now I change the subject for more discussions of different opinions. Craig mentioned the go to statement in programming languages and hinted it could be an evil if Chain implement the semantics of go to (I just called it jump