struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: default interceptor overriding parent package default interceptor
Date Mon, 17 Dec 2018 14:41:03 GMT
This is strange, inheritance should work just one way. Can you prepare
a small Maven based demo to demonstrate this behaviour?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

śr., 12 gru 2018 o 10:26 Steven Yang <kenshin520@gmail.com> napisał(a):
>
> Hi
> I have the following setup of my struts2 xml.
>
> in cus.xml
> <struts>
>    <package name="cus" extends="defaultPackage">
> .......no interceptors defined, using interceptors form defaultPackage
>
> in cus-cus.xml
> <struts>
>    <package name="cus-cus" extends="cus">
>    <interceptors>
>       <interceptor-stack name="newInterceptorStack">
>     ....new interceptors....
>       </interceptor-stack>
>   <interceptors>
>   <default-interceptor-ref name="newInterceptorStack"/>
>
>
> But all now all the Actions defined in cus.xml uses the newInterceptorStack
> as the default interceptor.
> I only want the Actions defined in cus-cus.xml to use the
> newInterceptorStack as the default interceptor.
>
> Using Struts 2.3.x
>
> Please advice
>
> Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message