title: Struts 1 Action Redirect to Struts 2 Action
body: <p>I have a java webapp with both struts 1 and struts 2. Inside the app there are several Struts 2 namespaces and Struts 1 modules. For example:</p>
  
  <pre><code>/public (Struts 1 module)
  /accounting (Struts 2 namespace)
  /auditing (Struts 2 namespace)
  /receipts (Struts 1 modules)
  </code></pre>
  
  <p>In my web.xml, the Struts 1 and 2 filters are specifically mapped to the correct namespace/module. For example,</p>
  
  <pre><code>&lt;filter-mapping&gt;
      &lt;filter-name&gt;struts2&lt;/filter-name&gt;
      &lt;url-pattern&gt;/accounting/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;struts1&lt;/filter-name&gt;
      &lt;url-pattern&gt;/public/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>Inside my Struts 1 area, I have a request to have a Struts 1 action forward to a Struts 2 action. I tried the following:</p>
  
  <pre><code>&lt;action path="/myRedirect" forward="/checkAccountRecords.action" module="accounting" /&gt;
  </code></pre>
  
  <p>However, this results in the following stack trace:</p>
  
  <pre><code>The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
  </code></pre>
  
  <p>I know that this could be fixed by mapping the Struts 1 parts of the website through the Struts 2 filter, but this causes problems for our specific website and I would like to avoid doing that.</p>
  
  <p>I also tried the action without the module:</p>
  
  <pre><code>&lt;action path="/myRedirect" forward="/accounting/checkAccountRecords.action" /&gt;
  </code></pre>
  
  <p>I got the folowing error:</p>
  
  <pre><code>can't find /receipts/accounting/checkAccountRecords.action (file not found)
  </code></pre>
  
  <p>I also tried the following action mapping:</p>
  
  <pre><code>&lt;action path="/myRedirect" forward="../accounting/checkAccountRecords.action" /&gt;
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>Path ../accounting/checkAccountRecords.action does not start with a "/" character
  </code></pre>
  
  <p>So is there anything left that I could try? How do I get a Struts 1 action to return a redirect to a Struts 2 action?</p>