• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL browser-based locale determination  RSS feed

 
Rick DeBay
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To process a fmt:message tag, JSTL needs to determine the appropriate locale. I'm not explicitly setting a locale so that it'll use the browser-based approach.
Once JSTL determines a locale using this method, I was under the impression that it's supposed to store this in session scope, but I'm only finding a request.charset in session scope.
The spec isn't clear on this, does anyone know how I should get this information (I need it in an Action class).
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't seen any verbiage that indicates that the JSTL stores a scoped variable for the locale unless you explicitly set it with the setLocale action.
I imagine that in the abscence of the scoped variable, the JSTL just looks at the header to determine the detault locale. This is probably what you'll have to do as well.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!