![]() |
Internationalization (i18N) Sample Application |
Internationalization (i18N) Sample Application
This document describes how to use the internationalization (i18N) sample application in conjunction with Sun ONE Web Server.
This sample application document contains the following sections:
Overview
- Overview
- Compiling and Assembling the Sample Application
- Deploying the Sample Application
- Running the Sample Application
The internationalization (i18N) sample application is a collection of simple applications that demonstrate i18N features. It covers specific features of the Java Servlet and JavaServer Pages specifications that are implemented in Sun ONE Web Server.Compiling and Assembling the Sample Application
This section contains instructions for building and assembling the internationalization (i18N) sample application.To rebuild the entire application from scratch, follow these steps:
Compile and assemble the WAR file. For example:
Execute ant under <install_root>/plugins/java/samples/webapps/i18n/src
Deploy the application.
Once you have created the sample application from scratch, proceed to Deploying the Sample Application.
Clean the web application project area. For example:
This will remove the sample application assemble and build directories.
You are now ready to use this WAR file for deployment.
Deploying the Sample Application
To deploy the internationalization (i18N) sample application:
If you want to verify registration of the application, proceed to Verifying Deployment. Otherwise, proceed to Running the Sample Application.
Go to the src directory of the sample. For example:
To verify the registration and deployment of the application, execute the following command:
- ant list_apps
You will see the i18n-simple application listed.
Go to <install_root>/plugins/java/samples/webapps/i18n/src and execute the following command:Running the Sample Application
You can run the application through the following URL:http://<Web_Server_hostname>:<port>/i18n-simple
Traverse individual links to execute the i18n sample application.
Copyright © 2003 Sun Microsystems, Inc. All rights reserved.