Title: Globalization Development Kit Building Global Internet Application
1(No Transcript)
2Globalization Development KitBuilding Global
Internet Application
Session id 40127
- Simon LawProduct Manager
- Oracle Corporation
3Globalization Development Kit
- What is the GDK ?
- A toolkit that simplifies the development
process, and reduces the cost of developing
Internet applications that will be used to
support a global environment - The need for the GDK
- The complexity associated with the different
globalization concepts, can make building and
supporting a global Internet application quite a
challenge for many companies.
4Internet and Oracle Services
- Oracles Globalization Platform for J2EE
- Internet Services
- provides the development support for the J2EE
middle tier to hide the complexity of
synchronizing globalization operations across
tiers - Oracle Services
- provides development support in the middle tier
to provide consistent globalization operations as
provided in the database server
5Monolingual Model
Application Server A
ISO-8859-1
MonolingualEnglish
ApplicationServer Instance1
English Locale
ApplicationServer Instance2
Shift- JIS
MonolingualJapanese
Japanese Locale
Application Server B
ApplicationServer Instance
TIS- 620
MonolingualJapanese
Thai Locale
6Multilingual Model
ISO-8859-1
English Locale
Application Server
Shift- JIS
ApplicationServer Instance
MultilingualEnglish, Japanese, Thai
Japanese Locale
TIS- 620
Thai Locale
7Developing a Global Internet Application
- Determining the user locale preference and
synchronizing it with the application - Specifying the character set for the input and
output of web content - Staging and managing translated content
- Getting consistent globalization operations
between the application and the database
8Supported Locale Sources
Locale Type Source HTTP language
preference Browser User Input Locale
Menu Locale preference from database Database LD
AP locale preference LDAP Application default
locale GDK
9GDK Application configuration file
- Dictates the globalization behaviors and the
properties of the application - One application configuration file per J2EE
application - Alter the globalization behavior in the
application, without the need to change the
programs and to recompile them
10Defining the locale sources and the application
locales
- Application configuration file gdkapp.xml
- ltlocale-sourcegt
- oracle.i18n.servlet.localeldap.LDAPInetOrgPers
on - lt/locale-sourcegt
- ltlocale-sourcegt
- oracle.i18n.servlet.localesource.HTTPAcceptLa
nguage - lt/locale-sourcegt
- ltapplication-localesgt
- ltlocalegtde-lt/localegt
- ltlocalegtjalt/localegt
- ltlocale default"yes"gten-USlt/localegt
- lt/application-localesgt
11Detecting the Locale
- Locale loc request.getLocale( )
- Localizer localizer ServletHelper.getLocalizerIn
stance(request) The GDK Localizer is an
all-in-one globalization object that encapsulates
comprehensive globalization attributes and methods
12Character set for the input and output of web
content
- A single local character set dedicated to the
whole application - Use Unicode UTF-8 for all contents regardless of
the language - Use the native character set for each language
13AUTO-CHARSET
14Handling the character set
- Specify the Character set in the application
configuration file. - ltpage-charsetgtUTF-8lt/page-charsetgt
- ltpage-charsetgtAUTO-CHARSETlt/page-charsetgt
- ltlocale-charset-mapsgt
- ltlocale-charsetgt
- ltlocalegtjalt/localegtltcharsetgtEUC-JPlt/charsetgt
- lt/locale-charsetgt
- lt/locale-charset-mapsgt
15Managing translated content
- Static Files HTML, GIF, XML etc.
- French version of index.html gt index_fr.html or
fr/index.html - ServletHelper.rewriteURL ( ) method rewrites a
URL based on the rules specified in the
application configuration file. ltimg
src"ltServletHelper.rewriteURL("logo.jpg",requ
est)gt"gt
16Managing translated content
- Strings in the JSP / JAVA Servlets
- Externalized into Java ResourceBundle
- REPLACElt Locale user_localerequest.getLocale(
) - ResourceBundle
- rbResourceBundle.getBundle("resource",user_locale
) gt - lt rb.getString("Welcome") gt
- WITH
- Localizer.getMessage ("Welcome") gt
17Globalization compatibility between Java Oracle
- No Globalization Standard
- Lengthy lead time for Java to add new locale
support - The GDK extends Oracle Globalization Support
features to the application server - Handles the compatibility between the Java and
the Oracle database server seamlessly
18Not available in Java 1.4.2
BANGLADESH CYPRUS DJIBOUTI INDONESIA KAZAKHSTAN MA
LAYSIA MAURITANIA SINGAPORE SOMALIA UZBEKISTAN VIE
TNAM
ASSAMESE BANGLA BENGALI GERMAN DIN GUJARATI INDONE
SIAN KANNADA LATIN AMERICAN SPANISH MALAY MALAYALA
M MARATHI ORIYA PUNJABI TAMIL TELUGU VIETNAMESE
19Oracle Services
- Oracle Locale Mapping
- Oracle Locale Information
- Oracle Character Set Conversion
- Oracle Date, Number, and Monetary Formatting
20Oracle Services cont.
- Oracle Binary and Linguistic Sorts including _CI
_AI - Oracle Translated locale and time zone names
- Oracle Language and Character Set detection
Technology to guess the character set encoding
and language of a given byte string or document
21D E M O N S T R A T I O N
Oracle Store
22Summary
- GDK is Oracles globalization platform for the
middle-tier - Bring Oracle Globalization features to the J2EE
- Reduce Application Development Complexity
- Increase Developer Productivity
- Decrease Deployment Times
- Application Consolidation
23Next Steps.
- Recommended demos and/or hands-on labs
- OW Hands on Session DEMOgrounds
- Globalization Support related questions
- Visit the DEMOgrounds for more information.
- Relevant web sites to visit for more information
- http//otn.oracle.com/tech/globalization
- GDK 10g and 9i availability
24Reminder please complete the OracleWorld
online session surveyThank you.
25A
26(No Transcript)