Hi, I have problems passing attributes through chained ww1
actions. Let’s say I have an action chain a->b->c. Action class ‘a’
has an attribute “name” that gets passed on using accessors. When
debugging this, it first looks fine. Action ‘b’ gets instantiated
as SUCCESS event for ‘a’ and b.setName() gets called, where the
attribute gets passed over. I can see the results of that when halting in
b.doValidation(). Next thing I do is an addError() in b.doValidation() because
of additional parameters I want to enter through ‘b’ s input jsp
page. When I return from that input jsp and enter b.doExecute(), b.name is
empty as if there was a new ‘b’ instance. The value stack doesn’t
seem to have the parameters as if it was empty. (I checked that there isn’t
a same name parameter in ‘b’ so it doesn’t get overwritten
with null or a new value, that’s not it). Why does this value get wiped if actions are chained? I
would like to chain actions to use previous actions attributes in follow up
actions until the whole chain is handled. What am I missing? Regards, Simon P.S: Please note this is still ww1. |