struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Yang <>
Subject default interceptor overriding parent package default interceptor
Date Wed, 12 Dec 2018 09:26:26 GMT
I have the following setup of my struts2 xml.

in cus.xml
   <package name="cus" extends="defaultPackage"> interceptors defined, using interceptors form defaultPackage

in cus-cus.xml
   <package name="cus-cus" extends="cus">
      <interceptor-stack name="newInterceptorStack"> 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


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message