IDPv3 internationalization via links and cookies

Brent Putman putmanb at georgetown.edu
Wed Nov 4 12:33:40 EST 2015



On 11/4/15 8:53 AM, Simon Lundström wrote:

> 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>

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 .


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151104/ce48521a/attachment.html>


More information about the users mailing list