Can't resolve a Locale <p>I have a problem with Locale's. I'm trying to do a simple thing where I can choose english or german. So I have two property files called messages_en and messages_de. So far these files have a single line:</p> <pre><code> contactbook = Contact Book </code></pre> <p>and </p> <pre><code> contactbook = Adressbuch </code></pre> <p>respectively. </p> <p>Now in my JSP view I have this :</p> <pre><code> &lt;spring:message code="contactbook"/&gt; </code></pre> <p>The idea is that the message in the view changes depending on which locale we're using. Now the locale itself should be changed with this line:</p> <pre><code> &lt;a href="?language=en"&gt;English&lt;/a&gt;|&lt;a href="?language=de"&gt;German&lt;/a&gt; </code></pre> <p>If I remove the everything works great but of course it's not locale specified. So the rest of the view is good.</p> <p>In my dispatcher-servlet.xml file I have this:</p> <p> </p> <pre><code>&lt;bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver"&gt; &lt;property name="defaultLocale" value="en" /&gt; &lt;/bean&gt; &lt;bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"&gt; &lt;property name="paramName" value="language" /&gt; &lt;/bean&gt; &lt;bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping" &gt; &lt;property name="interceptors"&gt; &lt;list&gt; &lt;ref bean="localeChangeInterceptor" /&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; </code></pre> <p>Again, without it everything works well. There's something wrong with my understanding here. The localeChangeInterceptor stops any change done to the locale and the ControllerClassNameHandlerMapping does what? I keep on looking at my controller and wondering should I add something to it but it seems to me that all these lines in the dispatcher should be enough.</p> <p>The exception I get is </p> <pre><code> No message found under code 'contactbook' for locale 'en' </code></pre> <p>Despite a myriad of examples out there I keep on failing to understand or resolve the problem. Any help would be greatly appreciated.</p>