title: Spring 3 MVC : problem with form:errors and bindingresult
body: <p>I want to validate my inputs but i can't make it work : nothing appear on the page.
  My project is in java 5, so no JSR303 (@Valid). My only solution, if i'm not mistaken, is to use BindingResult.</p>
  
  <p>My controller :</p>
  
  <pre><code>@Controller
  public class MyController {
  
      @RequestMapping(method = RequestMethod.POST, value = "myPage.html")
      public void myHandler(MyForm myForm, BindingResult result, Model model) {
          result.reject("field1", "error message 1");
      }
  }
  </code></pre>
  
  <p>My jsp :</p>
  
  <pre><code>&lt;form:form commandName="myForm" method="post"&gt;
      &lt;label&gt;Field 1 : &lt;/label&gt;
      &lt;form:input path="field1" /&gt;
      &lt;form:errors path="field1" /&gt;
  
      &lt;input type="submit" value="Post" /&gt;
  &lt;/form:form&gt;
  </code></pre>
  
  <p>What am i missing ?</p>
  
  <p>Thanks !</p>