title: Spring 3 MVC - form:errors not showing the errors
body: <p>I am using annotation based validation but for one of the forms I am not able to show any errors using the <code>form:errors</code> tag. When I debug the method, I can see the <code>BindingResult</code> has errors, but for some reason its not being displayed on the form. I am stumped as I have got it working on other forms, but for some reason this particular form is having issues. Any pointers are greatly appreciated.</p>
  
  <p>Here is some code from the controller, I have the copyCartForm as a @SessionAttribute as well in the Controller:</p>
  
  <pre><code>@RequestMapping(params="action=Confirm Copy", method=RequestMethod.POST)
  public String copyCart(@Valid CopyCart copyCartForm, BindingResult result) {
      if (result.hasErrors()) {
          logger.debug("errors in form" + result.toString());
          return "copyshoppingcart";
      } else {
                      ...
                      ...
          return "redirect:/home";
      }
  }
  </code></pre>
  
  <p>In the JSP I have tried this:</p>
  
  <pre><code>&lt;form:errors path="*" cssClass="formError"/&gt;
  </code></pre>
  
  <p>as well as:</p>
  
  <pre><code>&lt;form:errors path="fieldName" cssClass="formError"/&gt;
  </code></pre>
  
  <p>Neither works.</p>