WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

Configuring container internationalization for servlets

This task configures container internationalization for a servlet within a Web module.

Before you begin

This topic assumes that you have an assembly tool such as Application Server Toolkit (AST), Rational Application Developer or Rational Web Developer.

For information about assembly, refer to the online documentation or information center for your assembly tool. This topic points you to AST documentation. The AST information center accompanies the WebSphere Application Server information center.

This topic assumes that you have started the assembly tool, configured the assembly tool for work on Java 2 Platform, Enterprise Edition (J2EE) modules, and created or imported a dynamic Web project. Refer to the following topics in AST documentation:

You must also have set the internationalization type of one or more servlets in a Web project to Container.

About this task

This procedure relates one or more servlets to a container-managed internationalization attribute.

Procedure

  1. In the J2EE perspective, open the Web project for which you want to configure container internationalization.
    1. Double-click Dynamic Web Projects.
    2. Double-click the name of the Web project to see its contents.
    3. Double-click the deployment descriptor object.
    The Web Deployment Descriptor panel is displayed.
  2. In the Web Deployment Descriptor panel, click the Servlets tab.
  3. Scroll down to WebSphere Programming Model Extensions and then Internationalization.
  4. Following Container-managed Internationalization Attribute, set the Run As field by selecting Caller, Server, or Specified.
  5. If the servlet is to be run as Specified, select an internationalization policy from the Specified list or define a new policy.
    1. To define an internationalization policy, click New. The New Specified Initialization wizard is displayed.
    2. In the Description field, give the policy a name.
    3. If needed, set a time zone ID and add a time zone description. If you do not find the appropriate time zone in the ID list, click Customize to define one relative to Greenwich Mean Time (GMT).
    4. Create at least one locale for the policy. To create a locale, click Add; select a language and (optional) geographic region; specify a variant as needed. Add a locale description and click OK to finish. The new locale is added to the Locales list.
    5. If more than one locale is defined for the policy, select a locale from the Locales list and click Finish. Otherwise, just click Finish
  6. From the menu bar, click File > Save.

Results

Selected servlets are now configured to run under the associated internationalization settings.



Related concepts
Container internationalization attributes
Related tasks
Setting the internationalization type for servlets
Task topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/i18n/tasks/tin_configcontainerservlet.html

© Copyright IBM Corporation 2002, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)