title: How to display <form:errors> outside <form:form> in Spring?
body: <p>I'm new to Spring and I've been having some trouble trying to show a form errors.</p>
  
  <p>I have the following form:</p>
  
  <pre><code>&lt;form:form action="loginform.html" commandName="loginForm" onsubmit="goWait();"&gt;
  &lt;table&gt;&lt;tr&gt;
             &lt;td&gt;User Name: &lt;/td&gt;
             &lt;td&gt;&lt;form:input path="userName" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt; 
             &lt;td&gt;Password: &lt;/td&gt;
             &lt;td&gt;&lt;form:password path="password"/&gt; &lt;/td&gt;
          &lt;tr&gt;
              &lt;td colspan="2"&gt;
               &lt;input type="submit" value="Login" style="butt-login"&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  &lt;/table&gt;                                                        
  &lt;/form:form&gt;
  </code></pre>
  
  <p>The form, as can be seen, is backed by a <code>LoginForm</code> Bean that validates it. </p>
  
  <p>I want to show all the errors from the validation, outside this form. Something like this:</p>
  
  <pre><code>&lt;div&gt;
     &lt;ul&gt;
        &lt;li&gt;&lt;form:errors path="userName"/&gt;&lt;/li&gt;
        &lt;li&gt;&lt;form:errors path="password"/&gt;&lt;/li&gt;
     &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This div should be outside the , so I can't use the  tag.</p>
  
  <p>How can I do this?</p>