It's plausible that a client may want to change their locale between requests, so it wouldn't make much sense for JSTL to "freeze" it. Are you asking how to find out which locale JSTL actually chooses for browser-based locale setting? I don't think there's a convenient way to do that, but you can use the methods in javax.servlet.jsp.jstl.fmt.LocaleSupport to leverage JSTL's locale-determination logic for message lookups. Hm, the only gotcha is that it looks like you need a handle to a PageContext instance. Not much good unless you're writing tag handlers I guess...
Quoting [EMAIL PROTECTED]: > 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). > > Rick DeBay -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
