Title: Message
So,
 
If I want my parameters from Action1 applied to Action2, I need to use result-type of chain and I need to use a chaining interceptor. AND the chaining interceptor needs to be after the parameter interceptor.
 
This does seem to be working, I just want to summarize for the group and get confirmation that I did this correct.
 
Mike
----- Original Message -----
Sent: Monday, February 16, 2004 5:58 PM
Subject: RE: [OS-webwork] Chaining Actions

The ActionChainResult tells it to execute another named Action after executing this Action. The full set of Interceptors and the Result of that Action will be executed in turn. If you apply the ChainingInterceptor to this Action to which you are chaining, it will copy the properties from the previous Action (and anything else on the ValueStack) to this Action.
 
Let me know if that's not clear...
-----Original Message-----
From: Mike Porter [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 5:44 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Chaining Actions

Gang,
 
I am having a little trouble getting my actions to chain correctly.
 
In fact, I am slightly unclear what the difference between the ActionChainResult result-type and the ChainingInterceptor interceptor is.
 
I want to execute two actions and have the results of action 1 passed to action 2.  My 'results' are stored in standard java props with public getters and setters.  I have the props named the same on both actions. So... my thoughts are that WW or XW should take from 1 and give to 2.  Thats what I am hoping for.
 
I have used both the ActionChainResult and the ChainingInterceptor... no luck.
 
When I used the Interceptor I added ONE entry into my defaultComponentStack for the chaining interceptor.  This was at the bottom of the stack.  Do I then need to ALSO add an ADDITIONAL ref to the params interceptor? I tried this but I could not get it to work.
 
So, I guess I have two questions. One, whats the difference between the two chainers? And secondly, how do I get my properties from Action 1 applied to Action 2.  BTW.. I have had no problem getting action 2 to be called after action1 just the results are not set.
 
Mike

Reply via email to