title: Spring MVC Not Displaying Form Errors
body: <p>Here's my controller</p>
  
  <pre><code>@RequestMapping(value = "/save",method = RequestMethod.POST)
  public ModelAndView saveUserAccount(@ModelAttribute("account") UserAccountForm userAccount, BindingResult result){
      AddUserValidator userValidator = new AddUserValidator();
      userValidator.validate(userAccount,result);
      boolean hasErrors = result.hasErrors();
      if(hasErrors){
          return render(ADD_USER_VIEW)
              .addAttr("ACCOUNT_ROLES", Arrays.asList(AccountRole.values()))
              .addAttr("TENANTS",tenantInfoService.getAll())
              .addAttr("errors",result)
              .addAttr("account",userAccount).toMav();
      }
      return render(ADD_USER_VIEW)
          .addAttr("ACCOUNT_ROLES", Arrays.asList(AccountRole.values()))
          .addAttr("TENANTS",tenantInfoService.getAll())
          .addAttr("account",new UserAccountForm())
          .toMav();
  }
  </code></pre>
  
  <p>Here's the render library That I have created.</p>
  
  <pre><code>public class RenderMavBuilder {
  
      private final ModelAndView mav;
  
      public static RenderMavBuilder render(String viewname){
          RenderMavBuilder target = new RenderMavBuilder(viewname);
          return target;
      }
  
      public RenderMavBuilder addAttr(String attrName, Object value){
          mav.addObject(attrName, value);
          return this;
      }
  
      public RenderMavBuilder addAttr(Object value){
          mav.addObject(value);
          return this;
      }
  
      public RenderMavBuilder addAttrs(Map&lt;String , ?&gt; attrs){
          mav.addAllObjects(attrs);
          return this;
      }
  
      private RenderMavBuilder(String viewName){
          this.mav = new ModelAndView(viewName);
      }
  
      public ModelAndView toMav(){
          return mav;
      }
  }
  </code></pre>
  
  <p>Here's my validator</p>
  
  <p>Here's my form.</p>
  
  <pre><code>        &lt;div class="col-md-6 centered"&gt;
              &lt;form:errors path="*" /&gt;
              &lt;form:form commandName="account" method="post" action="${pageContext.request.contextPath}/user/save"&gt;
                  &lt;!-- Username --&gt;
                  &lt;div class="col-xs-12 form-group"&gt;
                      &lt;label class="control-label"&gt;Username&lt;/label&gt;
                      &lt;form:input path="username" type="text" class="form-control" /&gt;
                  &lt;/div&gt;
                  &lt;!-- Password --&gt;
                  &lt;div class="col-xs-12 form-group"&gt;
                      &lt;label class="control-label"&gt;Password&lt;/label&gt;
                      &lt;form:password path="password" class="form-control"/&gt;
                  &lt;/div&gt;
  
  
                  &lt;!-- Password --&gt;
                  &lt;div class="col-xs-12 form-group"&gt;
                      &lt;label class="control-label"&gt;Password&lt;/label&gt;
                      &lt;form:password path="retypedPassword"  class="form-control"/&gt;
                  &lt;/div&gt;
  
                  &lt;!-- First Name --&gt;
                  &lt;div class="col-xs-12 form-group"&gt;
                      &lt;label class="control-label"&gt;First Name&lt;/label&gt;
                      &lt;form:input path="firstName" type="text" class="form-control"/&gt;
                  &lt;/div&gt;
  
                  &lt;!-- First Name --&gt;
                  &lt;div class="col-xs-12 form-group"&gt;
                      &lt;label class="control-label"&gt;Last Name&lt;/label&gt;
                      &lt;form:input path="lastName" type="text" class="form-control"/&gt;
                  &lt;/div&gt;
  
                  &lt;!-- User Role --&gt;
                  &lt;div class="col-xs-12 form-group"&gt;
                      &lt;label class="control-label"&gt;User Role&lt;/label&gt;
                      &lt;form:select path="accountRole" class="form-control"&gt;
                          &lt;form:options items="${ACCOUNT_ROLES}"/&gt;
                      &lt;/form:select&gt;
                  &lt;/div&gt;
  
                  &lt;!-- Branch Designation --&gt;
                  &lt;div class="col-xs-12 form-group"&gt;
                      &lt;label class="control-label"&gt;Designated Branch&lt;/label&gt;
                      &lt;select path="tenantId" items="${TENANTS}" class="form-control"&gt;
                          &lt;c:forEach var="branch" items="${TENANTS}"&gt;
                              &lt;option value="${branch.id}"&gt;${branch.tenantDescription}&lt;/option&gt;
                          &lt;/c:forEach&gt;
                      &lt;/select&gt;
                  &lt;/div&gt;
                  &lt;!-- Button --&gt;
                  &lt;div class="col-md-12 form-group"&gt;
                      &lt;button class="form-control btn btn-primary submit-button" type="submit"&gt;Save New User &lt;i class="fa fa-check-square-o"&gt;&lt;/i&gt;&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/form:form&gt;
  </code></pre>
  
  <p>On my controler the binding result has errors. however, the error is not being displayed on the view, what am I missing?</p>