xwork / src / test / com / opensymphony / xwork / config / providers / xwork-test-interceptor-defaultref.xml

    "-//OpenSymphony Group//XWork 1.1.1//EN"

    <!-- this package has a default interceptor ref - so actions with no refs should have the default ref -->
    <package name="default">
            <interceptor name="timer" class="com.opensymphony.xwork.interceptor.TimerInterceptor"/>
            <interceptor name="logging" class="com.opensymphony.xwork.interceptor.LoggingInterceptor"/>

        <default-interceptor-ref name="timer" />
        <action name="ActionWithOwnRef" class="com.opensymphony.xwork.SimpleAction">
            <interceptor-ref name="logging"/>
        <action name="ActionWithDefaultRef" class="com.opensymphony.xwork.SimpleAction" />

    <!-- this package has no default interceptor ref - so actions with no refs should inherit the default interceptor -->
    <!-- this tests that default interceptor refs are inherited -->
    <package name="subpackage" extends="default">
        <action name="ActionWithNoRef" class="com.opensymphony.xwork.SimpleAction" />

        <action name="AnotherActionWithOwnRef" class="com.opensymphony.xwork.SimpleAction">
            <interceptor-ref name="logging"/>