title: Struts2 addActionError setting result to input automatically on redirect result
body: <p>I have a struts2 action, which sets some error using <code>addActionError</code> something like below</p>
  
  <pre><code> public String del() {
          if (new OrdersService().get(idorder) == null) {
              addActionError("Order not found");
          } else {
              new OrdersService().remove(idorder);
              addActionMessage("Order deleted successfully");
          }
          return SUCCESS;
      }
  </code></pre>
  
  <p>So the above method NO MATTER WHAT always return "success" result.</p>
  
  <p>But in struts.xml I've used the redirect result-type to redirect to another action
  and that action is never executed instead I'm getting result "input", I'm unable to understand what's going wrong ?</p>
  
  <p>Is it something like
  If an action sets an <code>actionError</code>, another action can't be executed and straight away "input" result will be thrown. But it doesn't make sense (at least to me)!</p>
  
  <p>[EDIT] including some part of struts.xml</p>
  
  <pre><code>&lt;action name="/order/{idorder:[0-9]+}/del" class="actions.OrderAction" method="del"&gt;
      &lt;interceptor-ref name="store"&gt;
          &lt;param name="operationMode"&gt;AUTOMATIC&lt;/param&gt;
      &lt;/interceptor-ref&gt;
      &lt;interceptor-ref name="defaultStack" /&gt;
  
      &lt;result name="success" type="redirect"&gt;orders&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>