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

> - Compiling and Assembling the Sample Application

> - Deploying the Sample Application

> - Running the Sample Application
> Overview

> 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:

> 1. Compile and assemble the WAR file. For example:

>    Execute ant under <install_root>/plugins/java/samples/webapps/i18n/src

> 2. Deploy the application.

>    Once you have created the sample application from scratch, proceed to Deploying the Sample Application.

> 3. Clean the web application project area. For example:

>    Execute ant clean

>    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:

> 1. Go to the src directory of the sample. For example:

>    <install_root>/plugins/java/samples/webapps/i18n/src

>    Run ant using the deploy task. For example:

>    ant deploy
> If you want to verify registration of the application, proceed to Verifying Deployment. Otherwise, proceed to Running the Sample Application.

> Verifying Deployment

> To verify the registration and deployment of the application, execute the following command:

> ant list_apps

> You will see the i18n-simple application listed.

> Undeploying the Application

> Go to <install_root>/plugins/java/samples/webapps/i18n/src and execute the following command:

> ant undeploy

> 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.