title: How to handle two spring forms in one page with respective submit actions?
body: <p>I have two spring forms on one page with their own submit actions:</p>
  
  <p><strong>JSP:</strong></p>
  
  <pre><code>&lt;form:form id="frm_user_login" class="animated fadeIn" method="post" action="./loginsubmit.htm" commandName="useSignInFm"&gt;
  
  &lt;form:form id="frm_user_register" class="animated fadeIn" method="post" action="./registersubmit.htm" commandName="userRegistrationForm"&gt;
  </code></pre>
  
  <p>And their respective mappings in one Contoller:</p>
  
  <p><strong>Contoller:</strong></p>
  
  <pre><code>@RequestMapping(value = "/loginsubmit.htm", method = RequestMethod.POST)
  public ModelAndView signIn(@ModelAttribute("useSignInFm") SignInForm signInForm, BindingResult bindingResult,
          Model model, HttpServletRequest request)
  
  @RequestMapping(value = "/registersubmit.htm", method = RequestMethod.POST)
  public ModelAndView userRegistration(@ModelAttribute("userRegistrationForm") UserRegistrationForm userRegistrationFm, 
          BindingResult bindingResult,Model model, HttpServletRequest request)
  </code></pre>
  
  <p>Submitting one form (<code>userRegistrationForm</code>) gives exception of other form:</p>
  
  <pre><code>Neither BindingResult nor plain target object for bean name 'useSignInFm' available as request attribute.
  </code></pre>
  
  <p>How can I handle this?</p>