title: Is there a way to stop Spring from adding in reference data from methods marked with @ModelAttribute into the URL on redirects?
body: <p>I'm currently using the @ModelAttribute annotation in my controllers to add reference data to my pages and forms, ie:</p>
  
  <pre><code>@ModelAttribute("someValue")
  public String getSomeValue() {
     return someValue;
  }
  </code></pre>
  
  <p>This works great until I start using redirects from the controllers. All of the values from methods marked with @ModelAttribute appear in the URL, ie:</p>
  
  <pre><code>http://somedomain.com/page?someValue=value
  </code></pre>
  
  <p>Is there a setting to turn this off? Or is there a simple fix for this?</p>
  
  <p>I read something about creating an interceptor for adding reference data into a model, but that just seems wrong:</p>
  
  <p><a href="http://developingdeveloper.wordpress.com/2008/02/28/common-reference-data-in-spring-mvc/" rel="nofollow">http://developingdeveloper.wordpress.com/2008/02/28/common-reference-data-in-spring-mvc/</a></p>