Configuring container internationalization for servlets

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

Why and when to perform this task

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

Steps for this task

  1. [5.0 only][Version 5.0.1][Version 5.0.2]Start the Application Assembly Tool.
  2. [5.0 only][Version 5.0.1][Version 5.0.2]In the left-hand panel, expand your Web module.
  3. [5.0 only][Version 5.0.1][Version 5.0.2]Select Internationalization.
  4. [5.0 only][Version 5.0.1][Version 5.0.2]To configure a new attribute, right-click on Internationalization and select New; otherwise, skip to step 5.
    1. On the New Container Internationalization Attribute panel, enter a Description that uniquely identifies the policy.
    2. Click Add. From the Add Servlets list, select one or more servlets to which the attribute will apply and click OK to exit the panel. The servlet(s) appear in the Web Components list.
    3. Click OK.
    The new attribute description is displayed in the Description list in the right-hand panel.
  5. [5.0 only][Version 5.0.1][Version 5.0.2]Select a named Container Internationalization Attribute from the Description list.
    The fields of the selected attribute are displayed.
  6. [5.0 only][Version 5.0.1][Version 5.0.2]If desired, re-enter a description (name) that uniquely identifies this attribute.
    A description is an arbitrary character string.
  7. [5.0 only][Version 5.0.1][Version 5.0.2]Click the Add button adjacent to the Web Components list.
  8. [5.0 only][Version 5.0.1][Version 5.0.2]From the Add Servlets list, select one or more servlets to which the attribute applies.
  9. [5.0 only][Version 5.0.1][Version 5.0.2]Click OK.
    The servlets appear in the Web Components list. Repeat these steps for any remaining servlets you want configure.
  10. [5.0 only][Version 5.0.1][Version 5.0.2]Complete the Run as field by selecting Caller, Server, or Specified.
    If the servlet is to run as Specified, complete the following steps to specify the context elements that the container will scope to servlet invocations; otherwise, click OK to exit this panel.
  11. [5.0 only][Version 5.0.1][Version 5.0.2](Optional) Enter the Description of the specified localization context.
    A description is an arbitrary character string.
  12. [5.0 only][Version 5.0.1][Version 5.0.2]Complete the Time Zone ID fields:
    1. (Optional) Enter the time zone ID Description.
      A description is an arbitrary character string.
    2. Enter the Time Zone ID.
      A time zone ID is an arbitrary, non-empty string that identifies a time zone supported by the Java SDK type, java.util.SimpleTimeZone. Refer to the topic Container internationalization attributes for details.
  13. [5.0 only][Version 5.0.1][Version 5.0.2]Complete the Locales fields; perform the following steps to construct an ordered list of locales:
    1. Click Add.
      The Add Locales panel is displayed.
    2. [Optional] Enter the locale Description.
      A description is an arbitrary character string.
    3. Enter the Language Code.
      A language code is an arbitrary string. A valid locale must contain at least a language code or a country code.
    4. Enter the Country Code.
      A country code is an arbitrary string. A valid locale must contain at least a language code or a country code.
    Refer to the section on locales in the topic Container internationalization attributes for details about language codes, country codes, and variants.
  14. [5.0 only][Version 5.0.1][Version 5.0.2]Click Apply to apply your changes and exit this panel.

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
Related reference
Internationalization assembly properties for Web modules[5.0 only][Version 5.0.1][Version 5.0.2]



Searchable topic ID:   tin_configcontainerservlet
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/i18n/tasks/tin_configcontainerservlet.html

Library | Support | Terms of Use | Feedback