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 Application Server Toolkit, 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 Application Server
Toolkit documentation. The Application Server Toolkit 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 Application
Server Toolkit documentation:
Procedure
- In the J2EE perspective, open the Web project for which you want
to set the internationalization type.
- Double-click Dynamic Web Projects.
- Double-click the name of the Web project to see its contents.
- Double-click the deployment descriptor object.
The Web Deployment Descriptor panel is displayed.
- In the Web Deployment Descriptor panel, click the Servlets tab.
- Scroll down to WebSphere Programming Model Extensions and
then Internationalization.
- From the Servlets and JSPs list of the Servlets panel, select
the servlet for which you want to set the internationalization type.
- Under Internationalization, select a value from the Internationalization
type list. Valid values are Application or Container.
- 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."