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.2: Using XMLServletConfig to create .servlet configuration files

4.2.1.3.3.1.2: Using XMLServletConfig to create .servlet configuration files

IBM WebSphere Application Server supplies the XMLServletConfig class for creating XML servlet configuration files (servlet_instance_name.servlet files).

Write a Java program that uses the XMLServletConfig class to generate a servlet configuration file. The XMLServletConfig class provides methods for setting and getting the file elements and their contents.

See the comments in the XMLServletConfig class for an explanation of how to use it.

Go to previous article: Example: Extending PageListServlet Go to next article: XML servlet configuration file syntax (.servlet syntax)

 

 
Go to previous article: Example: Extending PageListServlet Go to next article: XML servlet configuration file syntax (.servlet syntax)