Current File(s): conf/mvc-beans.xml
Format: Native Spring
Table of Contents |
---|
Overview
Spring provides many some proprietary ways to change the display locale, this . This documentation will describe how to change it via an URL query string parameter and how to persist it with a cookie. This method may or may not work in any particular Spring version without changes.
The configurations below are intended to be placed in conf/mvc-beans.xml, whch you would need to create (you can copy one of the other native Spring beans files as a template to start from).
General Configuration
Locale cookie persistance
...
Here we enabled changing the locale based on the URL query string parameter lang
and set a fallback locale of "en".
Reference
See Spring documentation for:
...