title: Chaining Spring CookieLocaleResolver and AcceptHeaderLocaleResolver
body: <p>I want to resolve the user's locale first by detecting a cookie, and if there isn't one then by the accept-language header. Spring seems to only want to accept a single <code>LocaleResolver</code>.</p>
  
  <p>Interestingly, the spring docs for <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/servlet/i18n/CookieLocaleResolver.html" rel="noreferrer"><code>CookieLocaleResolver</code></a> state</p>
  
  <blockquote>
    <p>LocaleResolver implementation that uses a cookie sent back to the user
    in case of a custom setting, with a fallback to the specified default
    locale or the request's accept-header locale.</p>
  </blockquote>
  
  <p>but this doesn't actually seem to be the case; testing shows it doesn't work and a quick look at the source shows it only gets the default if there is no cookie.</p>
  
  <p>Is the only solution to write my own <code>LocaleResolver</code> implementation?</p>