title: Using struts.xml with convention plugin
body: <p>This seems like it should be easy to do, but I just can make it work. I'm hooked on the convention plugin in Struts 2.1. However, I need to define some package-level configuration such as a new interceptor stack and exception mappings. I'd like to use the struts.xml file for this, but I can't get the convention-based packages matched to the struts.xml packages. My struts.xml looks like:  </p>
  
  <pre><code>&lt;struts&gt;
  &lt;constant name="struts.convention.default.parent.package" value="default"/&gt;  
  &lt;package name="default" extends="struts-default"&gt;
  &lt;/package&gt;
  &lt;package name="root" namespace="/" extends="struts-default"&gt;
      &lt;action name="index"&gt;
          &lt;result&gt;/index.jsp&lt;/result&gt;
      &lt;/action&gt;
  &lt;/package&gt;
  
  &lt;package name="my.package.actions.myaccount" namespace="/myaccount" extends="struts-default"&gt;
  &lt;interceptors&gt;
      &lt;interceptor name="authenticationInterceptor" class="my.package.interceptors.AuthenticationInterceptor"/&gt;
      &lt;interceptor-stack name="secureStack"&gt;
          &lt;interceptor-ref name="authenticationInterceptor"/&gt;
          &lt;interceptor-ref name="defaultStack"/&gt;
      &lt;/interceptor-stack&gt;
  &lt;/interceptors&gt;
  
      &lt;default-interceptor-ref name="secureStack"/&gt;
  &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>I have my interceptor in:<br>
    /src/my/package/interceptors<br>
  and my actions in:<br>
    /src/my/package/actions/myaccount  </p>