title: Spring MVC ThemeChangeInterceptor do not change theme
body: <p>I am stuck at something really painful.
  I am trying to use the theming of Spring WebMVC.</p>
  
  <p>This is the end of my web-context.xml file :</p>
  
  <pre><code>&lt;beans:bean id="themeChangeInterceptor" class="org.springframework.web.servlet.theme.ThemeChangeInterceptor" &gt;
      &lt;beans:property name="paramName" value="theme" /&gt;
  &lt;/beans:bean&gt;
  &lt;beans:bean id="themeSource" class="org.springframework.ui.context.support.ResourceBundleThemeSource"&gt;
      &lt;beans:property name="basenamePrefix" value="theme-" /&gt;
  &lt;/beans:bean&gt;
  &lt;beans:bean id="themeResolver" class="org.springframework.web.servlet.theme.CookieThemeResolver" &gt;
      &lt;beans:property name="defaultThemeName" value="default" /&gt;
  &lt;/beans:bean&gt;
  &lt;beans:bean id="handlerMapping" class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"&gt;
      &lt;beans:property name="interceptors"&gt;
          &lt;beans:list&gt;
              &lt;beans:ref bean="themeChangeInterceptor" /&gt;
          &lt;/beans:list&gt;
      &lt;/beans:property&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>In my header file, I have something like :</p>
  
  <pre><code>&lt;span style="float: right"&gt;
          &lt;a href="?theme=default"&gt;Default&lt;/a&gt;
          |
          &lt;a href="?theme=other"&gt;Other&lt;/a&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>And to finish, my html head has (imported in all views) :</p>
  
  <pre><code>&lt;link rel="stylesheet" href="&lt;spring:theme code="css"/&gt;" type="text/css" /&gt;
  </code></pre>
  
  <p>I got the two properties files in src/main/resources, which leads to my css. For example in theme-default.properties, there is :</p>
  
  <pre><code>css=static/css/dev.css
  </code></pre>
  
  <p>My css are in src/webapp/static/css/.
  When I load the website for the first time, the theme is default, so I think that the property files and the css are correctly found by the Theme resolver.
  But when I click on Default or Other in the header, nothing happens.</p>
  
  <p>Do you know where the problem is ?</p>
  
  <p>Thank you very much beforehand !
  Olivier.</p>