cambio lingua pagina web - set locale

Pubblicità

mikmontana

Utente Attivo
Messaggi
3
Reazioni
0
Punteggio
24
Ciao a tutti,

Sto cercando di sviluppare una applicazione web multilingua con spring.
Ho trovato su internet queste istruzioni :
Chapter*13.*Web MVC framework
e ho solo aggiunto questi tag nel mio dispatcher-servler
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>
e ho provato a cambiare la lingua della pagina tramite questo link index.htm?siteLanguage=en_EN ma non funziona...

Qualcuno mi può aiutare???
 
Pubblicità
Pubblicità
Indietro
Top