title: Why can't i redirect an action to another action in Struts2?
body: <p>i am using Struts2. I have a dialog box with a list of persons that is update through the "search_users" action. Next to this list i have a form that you can use to add another person by calling the "add_user" action when the form is submitted.</p>
  
  <p>What i'm trying to do is that, once the add_user action is performed, the list gets updated using the "search_user" action.</p>
  
  <p>I tried using the result type "redirect" in the struts.xml like this:</p>
  
  <pre><code>&lt;action name="search_users" class="org.apache.struts.gestion_edt.controller.adm_proyectos.BLSubequipo" method="searchUsers"&gt;
              &lt;result name="success"&gt;list.jsp&lt;/result&gt;
          &lt;/action&gt;
  
          &lt;action name="add_user" class="org.apache.struts.gestion_edt.controller.adm_proyectos.BLTipoEntregable" method="addUser"&gt;
              &lt;result name="success" type="redirectAction"&gt;search_users&lt;/result&gt;
          &lt;/action&gt;
  </code></pre>
  
  <p>But that doesn't work. What am i doing wrong? Is there something i should add to the struts.xml file that i'm not aware of?</p>
  
  <p>This is the error mesage i get:</p>
  
  <pre><code>"Caused by: There is no result type defined for type 'redirect-action' mapped with name 'success'.  Did you mean 'redirectAction'? - result - file:/.../struts.xml:59:44
      at ..."
  </code></pre>