title: Submit nested forms in Thymeleaf
body: <p>I am developing a web application using spring boot, spring mvc and thymeleaf.</p>
  
  <p>I have in template two nested forms with different action and two submit buttons as following:</p>
  
  <pre><code>&lt;form name="form1" action="#" th:action="@{/action1}" method="post"&gt;
  ...
       &lt;form name="form2" action="#" th:action="@{/action2}" method="post"&gt;
         ...
         &lt;button type="submit" value="Import"/&gt;                           
       &lt;/form&gt;
  ...
  &lt;button type="submit" value="Validate"/&gt;    
  &lt;/form&gt;
  </code></pre>
  
  <p>How to let button "Import" submit form2 not form1...??</p>
  
  <p>Thank you.</p>