title: Struts2 - Annotation for having multiple action methods
body: <p>Within in same action class, struts2 supports multiple action methods. </p>
  
  <p>One sample of struts.xml - How to convert it to annotation ? </p>
  
  <pre><code> &lt;action name="import"
      class="com.action.MainAction" method="importFiles"&gt;
      &lt;result name="success"&gt;main.jsp&lt;/result&gt;
      &lt;result name="error"&gt;error.jsp&lt;/result&gt;
  &lt;/action&gt;
  &lt;action name="resourceRowAction"
      class="com.action.MainAction" method="resourceRowAction"&gt;
      &lt;result name="success"&gt;main.jsp&lt;/result&gt;
      &lt;result name="error"&gt;erro.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>