Login Register

Installing the globalization sample applications

To install the Hello World sample and demo application, first download dojo-g11n-helloworld.zip and DojoGlobalizationDemo.war from http://TODO. The dojo-g11n-helloworld.zip file contains the Dojo G11N Hello World sample, and the DojoGlobalizationDemo.war file containes the Dojo Car Store and Dojo G11N samples.

Prerequisites


1. Browsers supported:
- Internet Explorer (Windows) 6.0+
- Firefox 1.5 – 2.x+
- Opera 9.x
- Safari 2.x +
2. Web server
- Apache Tomcat 5.5 and Java Development Kit 5.0
(Or - WebSphere Application Server Community Edition 1.1)

Installation (Only needed for Dojo Car Store demo app)

1. Apache Tomcat 5.5 + Java Development Kit 5.0 (Sun or IBM)
a. Make sure that your Java Development Kit 5.0 environment is ready.
b. Download Apache Tomcat 5.5 from Apache Tomcat Home and install it
(Suppose the installation directory of Tomcat is {TOMCAT_HOME}).
c. Copy DojoGlobalizationDemo.war to the directory {TOMCAT_HOME}/webapps.

2. (Optional) WebSphere Application Server Community Edition 1.1
1. DB2
a. Create a database in UTF-8 encoding.
b. Create tables and insert data using db.sql under DojoGlobalizationDemo.war/DB/.
c. Get java DB2 driver(db2jcc.jar, db2jcc_license_cu.jar), like in windows, they will be under
C:\Program Files\IBM\SQLLIB\java, and add them to DojoGlobalizationDemo.war/ WEB-INF/lib
d. Update the configuration in db.properties under DojoGlobalizationDemo.war/DB/, for example,
#DB2 configuration
driver=com.ibm.db2.jcc.DB2Driver
url=jdbc:db2://9.181.106.125:50000/DOJODEMO
user=db2admin
password=passw0rd

Or
Derby client mode 10.1.3.1
a. Add derbyclient.jar to DojoGlobalizationDemo.war/ WEB-INF/lib (you can get derbyclient.jar from Derby Home Please choose version 10.1.3.1)
b. Update the configuration in db.properties under DojoGlobalizationDemo.war/DB/, for example,
#client mode derby configuration
driver=org.apache.derby.jdbc.ClientDriver
url=jdbc:derby://localhost:1527/DojoCarStoreDB;create=true
user=user
password=password

2. WebSphere Application Server Community Edition 1.1
a. Download WAS CE from IBM WAS CE Home and install it (suppose the WAS CE installation directory is {WAS_CE_HOME}. In Windows, it may be C:\Program Files\IBM\WebSphere\AppServerCommunityEdition).
b. Launch the WAS CE server from the Windows start menu or {WAS_CE_HOME}\bin\startup.bat.
c. Launch the administrator console at https://localhost:8443/console
d. Click Deploy New on the left Console Navigation pane, locate the DojoGlobalizationDemo.war, leave all the options with default values, and install it.
e. Switch to Web App WARs on the left Console Navigation pane, and make sure that the newly installed DojoGlobalizationDemo/DojoCarStore/0.9/war application is running.

Accessing the sample applications

1. Access Dojo Globalization Hello World by extracting dojo-g11n-helloworld.zip, for example, in to the {Dojo_G11N_HW_DIR} directory, and open the Dojo_G11N_HW_DIR}/HelloWorld.html file in your browser offline.

This section introduces the first Hello World for Dojo Globalization. This Hello World application is pure HTML plus Dojo, therefore you can access it either offline or online. Please refer to Section 2.4 for detailed steps of accessing it.

After you have accessed the Hello World application for Dojo Globalization, you can switch to different locales, you will see the literal changes of Hello World, for example,
en-us:

Screen shot goes here

zh-cn:

Screen shot goes here

2. Access the Dojo Car Store application through http://localhost:8080/DojoGlobalizationDemo/DojoCarStore

3. Access the Dojo Globalization Sample through http://localhost:8080/DojoGlobalizationDemo/DojoG11NSample.html or extract the DojoGlobalizationDemo.war file, for example into the {DojoGlobalizationDemo_DIR}directory, and open the {DojoGlobalizationDemo_DIR}/DojoG11NSample.html file in your browser offline.

Where is the download files?

I guess the http://TODO is simply a placeholder. For now, where can I get the demo files?