A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Spring
Author
change locale not working
Mik Montana
Greenhorn
Joined: Oct 28, 2011
Posts: 1
posted
Oct 28, 2011 03:30:25
0
Hi all,
I'm trying to develop a multilanguage web application, I found the instruction to change the language at this link
http://static.springsource.org/spring/docs/2.5.x/reference/mvc.html#mvc-localeresolver
and I have only add this code on my dispatcher-servlet :
Code:
<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"> <property name="paramName" value="siteLanguage"/> </bean> <bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver"/> <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="interceptors"> <list> <ref bean="localeChangeInterceptor"/> </list> </property> <property name="mappings"> <props> <prop key="login.htm">indexController</prop> <prop key="uploadfile.htm">fileUploadController</prop> <prop key="successUpload.htm">successUploadController</prop> </props> </property> </bean>
and I try to change the language with this link : index.htm?siteLanguage=en_EN
but is not working.
Please help me....
I agree. Here's the link:
http://aspose.com/file-tools
subject: change locale not working
Similar Threads
Hibernate insert fails due to generate key failure
tiles2 - access denied page
spring internalization not working with spring security
spring hinbernet integration session problem
Spring and Quartz - can't update Triggers in database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter