Title: Message
so if parameter1 is null from JSP to Action1 and is set to parameter1=2 in Action1, and then chain to Action2. Should the parameter1 be null or 2?
 
tricky question :)
 
For me the result gets:  parameter1=null in Action2. I use ChainingInterceptor is this right? Haven't i overrided the value from the jsp in Action1?
 
/Mathias.
-----Original Message-----
From: Jason Carreira [mailto:[EMAIL PROTECTED]
Sent: den 17 februari 2004 02:58
To: [EMAIL PROTECTED]
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