struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RogerV <>
Subject Interceptor stack
Date Tue, 18 May 2010 07:01:38 GMT

Ok - I'm having a bad start to the day and this is driving me nuts. I'm using
the Convention plugin, and below I've attached a copy of my struts.xml. As
you can see I've got two custom interceptors which I'm adding to a copy of
the param-prepare-param stack.

Through logging I can see that my two custome interceptors are being
initialized (their constructors are being called) but thereafter neither of
the interceptors intercept() method is being invoked. 

Using the config-browser plugin I see that my custom interceptors are *not*
in the stack for the default, admin or diagnostic namespaces. Further none
of the namespaces are using the param-prepare-param stack the first
Parameter interceptor is missing as well. It looks like I'm using the
bog-standard struts-default stack.

What on arth have I missed?


    <constant name="struts.enable.DynamicMethodInvocation" value="true" />
    <constant name="struts.devMode" value="true" />
    <constant name="struts.objectFactory"
value="org.apache.struts2.spring.StrutsSpringObjectFactory" />

        <package name="default" extends="struts-default">
           	    <interceptor name="redirectMessage"
          		<interceptor name="connectionStoreMonitor"
          <interceptor-stack name="secureStack">
                <interceptor-ref name="redirectMessage"/>
                <interceptor-ref name="exception"/>
                <interceptor-ref name="connectionStoreMonitor"/>
                <interceptor-ref name="alias"/>
                <interceptor-ref name="params"/>
                <interceptor-ref name="servletConfig"/>
                <interceptor-ref name="i18n"/>
                <interceptor-ref name="prepare"/>
                <interceptor-ref name="chain"/>
                <interceptor-ref name="debugging"/>
                <interceptor-ref name="scopedModelDriven"/>
                <interceptor-ref name="modelDriven"/>
                <interceptor-ref name="fileUpload"/>
                <interceptor-ref name="checkbox"/>
                <interceptor-ref name="multiselect"/>
                <interceptor-ref name="staticParams"/>
                <interceptor-ref name="actionMappingParams"/>
                <interceptor-ref name="params">
                <interceptor-ref name="conversionError"/>
                <interceptor-ref name="validation">
                <interceptor-ref name="workflow">
         <default-interceptor-ref name="secureStack"/>

    <!-- Add packages here -->
        <package name="admin" namespace="/admin" extends="default"/>
        <package name="diagnostics"  extends="default"/>
View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message