InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.1: Developing servlets >
4.2.1.3: Servlet content, examples, and samples >
4.2.1.3.3: Using page lists to avoid hard coding URLs >
4.2.1.3.3.1: Obtaining and using servlet XML configuration files (.servlet files)
4.2.1.3.3.1: Obtaining and using servlet XML configuration files (.servlet files)
The IBM WebSphere Studio provides wizards that generate servlets with
accompanying XML servlet configuration files (.servlet files).
If you do not have access to the Studio, you can manually implement
XML servlet configuration files. The servlet must also be modified or
created to support the use of a .servlet file for its configuration.
Using .servlet files from IBM WebSphere Studio
- Use IBM WebSphere Studio to create a servlet and .servlet files. See the
Studio documentation for instructions.
- Deploy the compiled servlet and its XML servlet configuration file on the application
server.
Using manually configured .servlet files
- Create or obtain a servlet that extends the PageListServlet class.
- Use the XMLServletConfig class to create an XML servlet configuration file for the servlet instance.
- Deploy the compiled servlet and its XML servlet configuration file.
|
|