title: Change a Spring MVC redirect from a GET to a POST?
body: <p>I'm doing a redirect from a Spring MVC controller by returning a String containing the URL:</p>
  
  <pre><code>return "redirect:/my/form/newpage.html?pid=".concat(myform.getId().toString());
  </code></pre>
  
  <p>this gives a string like this:</p>
  
  <pre><code>redirect:/my/form/newpage.html?pid=456
  </code></pre>
  
  <p>The trouble is, the Spring <code>ModelFactory</code> class appends all our session attributes to the query string and it looks horrible.   I'd really like to change this redirect from a GET to a POST, but I have no idea how to do that.   Can anyone help?</p>