Well, of course it worked, but when the users browser is set to use yet another locale, the error will most likely reappear again. The problem here is that the default language isn't kicking in.
You set default language with a property to the CookieLocaleResolver with deaultLocale key and a language value :Code:<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver"> <property name="defaultLocale" value="en"/> </bean>


Reply With Quote