I created my interceptor stack in the top-level struts.xml, like this :
<!DOCTYPE struts PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
  "http://struts.apache.org/dtds/struts-2.3.dtd";>
<struts>

    <package name="default" namespace="/" extends="struts-default">

        <interceptors>
            <interceptor name="logging"
class="com.mysite.common.MdcLoggingUtility"/>
            <interceptor-stack name="MyStack">
                <interceptor-ref name="params">
                    <param name="acceptParamNames">^[a-zA-Z0-9_]+$</param>
                    <param name="paramNameMaxLength">40</param>
                </interceptor-ref>
                <interceptor-ref name="timer" >
                    <param name="logLevel">info</param>
                </interceptor-ref>   
                <interceptor-ref name="defaultStack" />
            </interceptor-stack>
        </interceptors>

        <default-interceptor-ref name="MyStack" />
       
...

    <include file="module_1/struts.xml" />
    <include file="module_2/struts.xml" />
</struts>


I have tried different declaration in the submodules but thay all seems
to not thoroughly work.
So having the same declaration or the same declaration with different
name for the interceptor or using "MyStack" in the extends ...


Any idea would be appreaciated.

Tx,











-- 
Thomas Lionel SMETS, CISSP (385434)
*m :* +32 497 44 68 12
*ph :* +32 2 852 3341
*skype :* thomas.lionel.smets

PGP = FDF0 8FB8 4F37 3F79 1011 05AB 0DCE 9BAB 5DD0 0E10

<<attachment: tsmets.vcf>>

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to