title: Spring <form:form> two action and two submit types for one form
body: <p>I have form:</p>
  
  <pre><code>&lt;form:form id="searchForm" modelAttribute="fbosAttributes" action="result" method="get"&gt;
  
  ....
  
  &lt;/form:form&gt;
  </code></pre>
  
  <p>Inside of this form I have two submit buttons with name:</p>
  
  <pre><code>&lt;input type="submit" name="ashtml" value="${labelbuttonhtml}"/&gt;
  &lt;input type="submit" name="asexcel" value="${labelbuttonxls}"/&gt;  
  </code></pre>
  
  <p>Those two buttons works fine for different method in my controller, I use <code>params</code> to recognize:</p>
  
  <pre><code>@RequestMapping(value="/result.xls", method=RequestMethod.GET, params="asexcel")
  </code></pre>
  
  <p>The question is how to make this to buttons react on different action and also how to add two actions inside of form?</p>