title: Spring MVC - Hibernate form:errors and bindingresult, jsp don't display error messages
body: <p>I use Spring MVC 3, Spring 3 and Hibernate 2.5 . 
  I want to validate my inputs but i can't make it work : nothing appear on the page.</p>
  
  <p>My jsp</p>
  
  <pre><code>&lt;form:form commandName="entrepriseSearch" action="/search" modelAttribute="entrepriseSearch" class="search" method="POST"&gt;
      &lt;table class="search"&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;form:input path="champ1"/&gt;
                      &lt;form:errors path="champ1"/&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
                          ... 
          &lt;/tfoot&gt;
      &lt;/table&gt;
  &lt;/form:form&gt;
  </code></pre>
  
  <p>My Controller </p>
  
  <pre><code> @RequestMapping(value = "search", method = { POST })
  public String search(@Valid @ModelAttribute("entrepriseSearch")  EntrepriseSearch entrepriseSearch, BindingResult bindingResult, Model model) {
  
      if (bindingResult.hasErrors()) {
          // bindingResult works 
          return "domain/domentreprise/showSearchForm";
      }
  
      return "/search";
  }
  </code></pre>
  
  <p>My Bean</p>
  
  <pre><code>public class EntrepriseSearch extends SearchForm implements Serializable {
  
  private static final long serialVersionUID = 1L;
  
  private String champ1;
  
  @MinMaxLength(min = 9,max=14, nullable = true)
  public String getChamp1() {
      return champ1;
  }
  
  public void setChamp1(String champ1) {
      this.champ1= champ1;
  } }
  </code></pre>
  
  <p>What am i missing ? 
  The binding works but the errors message are not displayed. 
  Thanks</p>