Grails, HTML/UI/CSS

Finding User’s Session Locale in GSP

There are situations where you might want to know the Locale of the user as set in the session in your GSP so that you can show text in a particular language/manner. Here the Spring framework's SessionLocaleResolver can come to the rescue. In one of our recent Grails projects, we did the following in one of our GSPs to display the content...

by Abhishek Tejpaul
Tag: ISO-639
14-Jul-2010