Setting the internationalization type for servlets

This task sets the internationalization type for a servlet within a Web module.

Before you begin

This topic assumes that you have an assembly tool such as Rational® Application Developer.

For information about assembly, refer to the documentation for your assembly tool. The steps in this topic refer to Rational Application Developer.

This topic assumes that you have started the assembly tool, configured the assembly tool for work on Java™ Platform, Enterprise Edition (Java EE) modules, and created or imported a dynamic Web project.

Procedure

  1. In the Java EE perspective, open the Web project for which you want to set the internationalization type.
    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. From the Servlets and JSPs list of the Servlets panel, select the servlet for which you want to set the internationalization type.
  5. Under Internationalization, select a value from the Internationalization type list. Valid values are Application or Container.
  6. From the menu bar, click File > Save.

Results

The internationalization type setting is assigned to the servlet.

What to do next

If you selected container-managed internationalization, you can then set container-managed internationalization attributes for methods within the servlet. For more information, see "Configuring container internationalization for servlets."



In this information ...


Related concepts

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Oct 22, 2010 12:21:29 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-zos&topic=tin_settypeservlet
File name: tin_settypeservlet.html