title: HTTP Status 404 - No result defined for action and result input : adding result type input prevents submit
body: <p>I have a form in which I have :</p>
  <p><strong>JSP:</strong></p>
  <pre><code>&lt;form name=&quot;xyz&quot; action=&quot;upload&quot;&gt;
      &lt;input type=&quot;file&quot; name=&quot;upload&quot;/&gt;
      &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;submit&quot;/&gt;
  &lt;/form&gt;
  </code></pre>
  <p><strong><code>struts.xml</code>:</strong></p>
  <pre><code>&lt;action name=&quot;upload&quot; class=&quot;uploadClass&quot; method=&quot;saveExcel&quot;&gt;
      &lt;result name=&quot;success&quot;&gt;page1.jsp&lt;/result&gt;
      &lt;result name=&quot;error&quot;&gt;error.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  <p>For this it gives an error :</p>
  <pre><code>HTTP Status 404 - No result defined for action and result input
  </code></pre>
  <p>And if I modify <code>struts.xml</code> as :</p>
  <pre><code>&lt;action name=&quot;upload&quot; class=&quot;uploadClass&quot; method=&quot;saveExcel&quot;&gt;
      &lt;result name=&quot;success&quot;&gt;page1.jsp&lt;/result&gt;
      &lt;result name=&quot;error&quot;&gt;error.jsp&lt;/result&gt;
      &lt;result name=&quot;input&quot;&gt;page1.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  <p>When I try to submit the form the page reloads.</p>
  <p>How to resolve this?</p>