title: Spring - Redirect after POST (even with validation errors)
body: <p>I'm trying to figure out how to "preserve" the BindingResult so it can be used in a subsequent GET via the Spring <code>&lt;form:errors&gt;</code> tag. The reason I want to do this is because of Google App Engine's SSL limitations. I have a form which is displayed via HTTP and the post is to an HTTPS URL. If I only forward rather than redirect then the user would see the <a href="https://whatever.appspot.com/my/form" rel="noreferrer">https://whatever.appspot.com/my/form</a> URL. I'm trying to avoid this. Any ideas how to approach this?</p>
  
  <p>Below is what I'd like to do, but I only see validation errors when I use <code>return "create"</code>.</p>
  
  <pre><code>@RequestMapping(value = "/submit", method = RequestMethod.POST)
  public final String submit(
      @ModelAttribute("register") @Valid final Register register,
      final BindingResult binding) {
  
      if (binding.hasErrors()) {
          return "redirect:/register/create";
      }
  
      return "redirect:/register/success";
  }
  </code></pre>