skip to main content
Programmer's documentation > Advanced globalization in JViews Charts > Software globalization in JViews > ULocale in web applications
 
ULocale in web applications
In web applications the locale is inferred by default from the Accept-Language information that the browser sends. It does not contain information about script, calendar, collation, and so on.
If you want to use a different locale from the inferred locale, for example, a locale specified by corporate policies, the user’s explicit selection for the current section, from the previous session, or from the user’s registration profile, you must specify it by using IlvLocaleUtil.setThreadULocale(ULocale locale) for the duration of the current request. If the locale changes within a session, you might also have to call IlvLocaleUtil.setThreadULocale(ULocale locale) on the relevant web components.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.