It definitely does not include/call myStack, as I can see it does not call
an initialise method I use.
here is the action:
<action name="mySelect" method="submit"
class="mypackage.MySelect">
<!-- Save context from redirect success action -->
<interceptor-ref name="store">
<param name="operationMode">STORE</param>
</interceptor-ref>
<!-- <interceptor-ref name="myStack" /> -->
<result name="success" type="redirectAction">
<param name="actionName">favourites</param>
<param name="pgn">${pageNum}</param>
<param name="searchString">${searchString}</param>
<param name="suppressEmptyParameters">true</param>
</result>
<result name="error" type="chain">favourites</result>
</action>
On 6 March 2016 at 10:21, Lukasz Lenart <[email protected]> wrote:
> 2016-03-06 11:06 GMT+01:00 Greg Huber <[email protected]>:
> > ....Ahhhhh, sorry, here it is again,
> >
> > <package name="mypackage" namespace="/" extends="struts-default">
> >
> > <interceptor-stack name="myStack">
> > ..
> > </interceptor-stack>
> > ..
> > <default-interceptor-ref name="myStack" />
> > ..
> > <package>
> >
> > <package name="package-member" namespace="/myNamespace"
> extends="mypackage">
> > ....
> > <action..>
> > <interceptor-ref name="store">
> > <param name="operationMode">STORE</param>
> > </interceptor-ref>
> > <interceptor-ref name="myStack" />
> > </action>
> > ....
> > <package>
>
> It's exactly the same configuration as in the example app and it works
> there properly. Just one remark: defining per action interceptors
> stack overrides per package defined stack but just for the action
>
> > I was looking to see where this gets built, which class does the
> building?
>
> Per action interceptors are loaded here
>
> https://github.com/apache/struts/blob/master/core/src/main/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java#L455
>
>
> Regards
> --
> Ćukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>