title: Passing BindingResult through RedirectionAttributes
body: <p>I am stuck trying to passing the BindingResult through RedirectionAttributes:</p>
  
  <p>I have referenced <a href="https://stackoverflow.com/questions/2543797/spring-redirect-after-post-even-with-validation-errors">Spring - Redirect after POST (even with validation errors)</a>, but am still stuck.</p>
  
  <p>I have a GET method:</p>
  
  <pre><code>@RequestMapping(value = "/test", method = RequestMethod.GET)
  public String test(@ModelAttribute("exampleForm") final ExampleForm exampleForm, final Model model)
  {
      return "test";
  }
  </code></pre>
  
  <p>and a POST method:</p>
  
  <pre><code>@RequestMapping(value = "/doSomething", method = RequestMethod.POST)
  public String doSomething(@Valid @ModelAttribute("exampleForm") final ExampleForm exampleForm, final BindingResult bindingResult, final RedirectAttributes redirectAttributes)
  {
      if (bindingResult.hasErrors())
      {
          redirectAttributes.addFlashAttribute("org.springframework.validation.BindingResult.exampleForm", bindingResult);
          redirectAttributes.addFlashAttribute("exampleForm", exampleForm);
          return "redirect:/test";
      }
  }
  </code></pre>
  
  <p>However, I am not seeing binding errors in the model of the GET method (after redirect) when I receive them in the POST method - they seem to disappear. </p>
  
  <p>Here is the bindingResult object in the POST method:
  <code>org.springframework.validation.BeanPropertyBindingResult: 1 errors</code></p>
  
  <p>Here is the model entry in the GET method showing 0 errors:
  <code>org.springframework.validation.BindingResult.exampleForm=org.springframework.validation.BeanPropertyBindingResult: 0 errors</code></p>
  
  <p>Any help would be much appreciated.</p>