Chaining is copying over properties of previous action
------------------------------------------------------
Key: WW-2497
URL: https://issues.apache.org/struts/browse/WW-2497
Project: Struts 2
Issue Type: Bug
Components: Core Interceptors
Affects Versions: 2.0.9
Environment: Solaris 9, Windows XP
Reporter: Chitharanjan Mohandas
Priority: Critical
We have 2 actions which are involved in chain
<action name="someAction" class="com.examples.SomeAction">
<interceptor-ref name="basicStack"/>
<result name="success" type="chain">otherAction</result>
</action>
<action name="otherAction" class="com.examples.OtherAction">
<interceptor-ref name="chain"/>
<interceptor-ref name="basicStack"/>
<result name="success">otherAction.jsp</result>
</action>
com.examples.SomeAction and com.examples.OtherAction implementt Unchainable.
We have a getTestChain() method in SomeAction, which returns "test Unchainable"
When the property testChain is accessed via OGNL in otherAction.jsp, we get
the value test Unchainable
<s:property value="testChain"/>
Why is this happening, the code and doculemtation clearly state that if an
action id of type Unchainable, its property is not copied over to ValueStack.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.