Possible Duplicate:
How to internationalize a java web application.
greetings all i want that when the client request a page that page is automatically displayed in his locale meaning (locale is detected then switch to it) how to do so ?
Possible Duplicate:
How to internationalize a java web application.
greetings all i want that when the client request a page that page is automatically displayed in his locale meaning (locale is detected then switch to it) how to do so ?
Here is the tutorial on doing this in spring. And here is the spring reference documentation.
However, do not depend on the browser's locale as this has some issues like inconsistent way in locale handling by browsers, forces user's to switch the browser locale when you have to support multiple languages within the same country. Provide an ability for the user to switch language on the home page itself.