title: Struts 2 remove .action extension when redirect
body: <p>Before starting, I'm sorry for my bad English, because English is not my first language. However, I have a problem with Struts 2 redirecting.</p>
  
  <p>One part of my <code>Struts.xml</code> file is like this:</p>
  
  <pre><code>&lt;package name="login" namespace="/" extends="struts-default"&gt;
      &lt;action name="login" class="Action.loginAction"&gt;
          &lt;result name="success" type="redirectAction"&gt;
              &lt;param name="actionName"&gt;search&lt;/param&gt; 
              &lt;param name="namespace"&gt;/&lt;/param&gt; 
          &lt;/result&gt;
          &lt;result name="error"&gt;/login.jsp&lt;/result&gt;
          &lt;result name="input"&gt;/login.jsp&lt;/result&gt;
      &lt;/action&gt;
  &lt;/package&gt;
  </code></pre>
  
  <p>I have a <code>loginAction</code> that's responsible for logging in the user (no matter what is the content of this file). When the result of this action is <code>success</code>, I want to redirect to <code>search</code> action. Everything works fine, but my problem is, when I redirect to <code>search</code> action, the URL looks like this: <code>http://localhost:8080/MyWebApplication/search.action</code></p>
  
  <p>I want to have the <code>.action</code> removed from the URL, when redirecting to a particular action. What do I need to change to fix this?</p>
  
  <p>Thanks for your attention.</p>