Ciao a tutti,
Sto cercando di sviluppare una applicazione web multilingua con spring.
Ho trovato su internet queste istruzioni :
I'm trying to develop a multilanguage web application, I found the instruction to change the language at this link http://static.springsource.org/sprin...localeresolver e ho solo aggiunto questi tag nel mio dispatcher-servler
e ho provato a cambiare la lingua della pagina tramite questo link index.htm?siteLanguage=en_EN ma non funziona...codice:<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>
Qualcuno mi può aiutare???