....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> I was looking to see where this gets built, which class does the building? On 6 March 2016 at 09:48, Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2016-03-04 20:17 GMT+01:00 Greg Huber <gregh3...@gmail.com>: > > What it seems to be doing is executing the default stack and ignoring the > > fact I have extended myStack in myPacakge below. > > > > layout: > > > > <package name="myStack" namespace="/" extends="struts-default"> > > .... > > <package> > > > > <package name="mypackage" namespace="/myNamespace" extends="myStack"> > > .... > > <action..> > > <interceptor-ref name="store"> > > <param name="operationMode">STORE</param> > > </interceptor-ref> > > <interceptor-ref name="myStack" /> > > "myStack" isn't an Interceptors Stack name, it's a name of package > which isn't the same > > > </action> > > .. > > <package> > > I have extended the Message Store example app and defined custom stack > which creates session (it's need by MessageStoreInterceptor) > > > https://github.com/apache/struts-examples/blob/master/message-store/src/main/resources/struts.xml#L14-L17 > > and then I reference it in the next package > > > https://github.com/apache/struts-examples/blob/master/message-store/src/main/resources/example.xml#L15-L18 > > everything looks ok and works as expected. If you remove > "createSession" interceptor from the "default" stack, no message will > be transferred from one action to another - you won't see "Hello from > HelloWorld1" message. > > > Regards > -- > Ćukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > >