Home
Author Forum
Author Resources
Author FAQ
Author Tips
Publishers
Oracle Tips
Oracle News
Oracle Forum

 

   
  Oracle Tips by Burleson

Oracle 10g Determining Locale in OGS

Oracle Database 10g OGS offers automatic locale detection to determine the current locale of the user. OGS provides the localizer, which is an all-in-one globalization object that provides commonly used globalized information for your page. If you require more than the functionality of the basic request.getLocale class, then using the Localizer class provided by OGS is better.

Determining the Locale Source in OGS

OGS determines the user locale based on the locale determination rules, defined by either the DBA or the developer in the OGS application configuration file.

For example:

  • When the LDAP user has been authenticated, and the LDAP locale preference is defined, then it is used as the preferred locale of the current user.
     

  • When the LDAP server is not available or the user has signed off from the server, then the preferred locale of the current user is defined according to the locale information stored in the HTTP Accept-Language header.
     

  • When both the LDAP and HTTP locale preference are not available, then the application default locale defined in the application configuration file is used to define the current user locale.

In the first scenario listed above, the locale data is stored in a local cookie, so that the subsequent web pages can use the cookie without having to access the LDAP server. In the second scenario, the locale is not saved in the cookie, but the HTTP language preference in the Accept-Language header is referenced on each request.

In the case where the HTTP Accept-Language header is the locale source, the locale order defined by the q parameter is considered by OGS.

The default locale of the Java VM (where the application executes) is not depended on by OGS because the application default locale defined in the OGS application configuration file catches all fallback operations.


Get the complete Oracle10g story:

The above text is an excerpt from "Oracle Database 10g New Features: Oracle10g Reference for Advanced Tuning and Administration", by Rampant TechPress.  Written by top Oracle experts, this book has a complete online code deport with ready to use scripts. 

To get the code instantly, click here:

http://rampant-books.com/book_2003_2_oracle10g.htm


Need an Oracle Mentor?

BEI is now offering personal mentors for Oracle DBAs where you can have an Oracle expert right at your fingertips, anytime day or night. We work with hundreds of Oracle databases every year, so we know exactly how to quickly assist you with any Oracle question.

Why risk an unplanned outage? You can now get telephone access to Don Burleson or any of his Oracle Certified DBAs with more than 20 years of full-time IT experience. Click here for details:

http://www.dba-oracle.com/service_oracle_backup.htm

BC Oracle consulting & Training Support logo

Rampant Oracle Books and downloads

Remote DBA Oracle logo 

 

Copyright 2006 by Burleson Consulting (BC)