Listing C – web.xml
 
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
   <context-param>
      <param-name>appName</param-name>
      <param-value>My Web App</param-value>
   </context-param>
   <!--  servlet mappings  -->
   <servlet>
      <servlet-name>CompanyName</servlet-name>
      <servlet-class>myapp.CompanyNameServlet</servlet-class>
      <init-param>
         <param-name>companyName</param-name>
         <param-value>My Company, Inc.</param-value>
      </init-param>
   </servlet>
</web-app>