<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 11/4/15 8:53 AM, Simon Lundström
wrote:
<pre wrap="">
</pre>
</div>
<blockquote cite="mid:20151104135346.GX487@kaka.it.su.se"
type="cite">
<pre wrap="">
The import works alright, but changing locale via the QS parameter still
doesn't work. This is my conf:
<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
<property name="paramName" value="lang"/>
</bean>
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
<property name="cookieName" value="lang"/>
</bean>
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="interceptors">
<list>
<ref bean="localeChangeInterceptor"/>
</list>
</property>
</bean>
</pre>
</blockquote>
<br>
No, that definitely won't work - putting the interceptor on the
SimpleUrlHandlerMapping - because that's not the HandlerMapping that
SWF uses. For that approach it would have to be added to that
handler mapping in system/conf/mvc-beans.xml - which you can't
modify. What I meant for you to test is the
<mvc:interceptors> approach. You should be able to put that
in the user-space mvc-beans.xml .<br>
<br>
<br>
</body>
</html>