title: jsp:forward tag forwards to Struts 2 action
body: <p>I am migrating a Struts application to Struts 2. It was developed by Struts 1.2 four years ago.</p>
  <p><strong>My question is:</strong></p>
  <p>In my JSP, there is such a statement:</p>
  <pre><code>&lt;jsp:forward page=&quot;/a.do&quot; /&gt;
  </code></pre>
  <p>It works well in Struts 1, but does not work in Struts 2, it tells me HTTP 404 error when I was  accessing this JSP file.</p>
  <p>However, if I access to <code>http://localhost:8080/shell/a.do</code>, it works well.</p>
  <p>I wonder the reason, is it because the forward action cannot be caught by the Struts 2 filter? (<code>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</code>)</p>
  <p>So the forward cannot be dispatched to the Struts 2 action?</p>
  <p>There are many forwards in my application, if forwards cannot work in Struts 2, does it the only solution to use redirect instead of forward?</p>
  <p>Actually this question is based on my analysis, the original job is show welcome page of the site. If I use <code>jsp:forward</code> forwards to <code>a.do</code>, it doesn't work.</p>
  <p>And I followed Roman's advice, use <code>result</code> instead of forward. So the question now is how to configure the default action for the entire application?</p>
  <p>I tried <code>&lt;default-action-ref name=&quot;a&quot;/&gt;</code>, but it works only for unmapped actions, for example <code>http://localhost:8080/shell2/(some-unmapped-action).do</code>, it goes to the default action. But it does not work if I do not specify the <code>&quot;.do&quot;</code>.</p>
  <p>Of course this can be done with url-rewrite, but I don't want to use this approach.</p>