<!DOCTYPE web-app PUBLIC 
   "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

   <!-- General description of your Web application -->
   <display-name>
      Java How to Program JSP and Servlet Chapter Examples
   </display-name>

   <description>
      This is the Web application in which we 
      demonstrate our JSP and Servlet examples.
   </description>

   <!-- Servlet definitions -->
   <servlet>
      <servlet-name>welcome1</servlet-name>

      <description>
         A simple servlet that handles an HTTP get request.
      </description>

      <servlet-class>
         WelcomeServlet
      </servlet-class>
   </servlet>

   <servlet>
      <servlet-name>welcome2</servlet-name>

      <description>
         A simple servlet that handles an HTTP get request.
      </description>

      <servlet-class>
         WelcomeServlet2
      </servlet-class>
   </servlet>
   
   <servlet>
      <servlet-name>welcome3</servlet-name>

      <description>
         A simple servlet that handles an HTTP post request.
      </description>

      <servlet-class>
         WelcomeServlet3
      </servlet-class>
   </servlet>

   <servlet>
      <servlet-name>redirect</servlet-name>

      <description>
         A servlet that redirectds to another URL.
      </description>

      <servlet-class>
         RedirectServlet
      </servlet-class>
   </servlet>

   <servlet>
      <servlet-name>animalsurvey</servlet-name>

      <description>
         A survey servlet.
      </description>

      <servlet-class>
         com.deitel.jhtp5.servlets.SurveyServlet
      </servlet-class>

      <init-param>
         <param-name>databaseLocation</param-name>
         <param-value>C:/CloudScape_5.0</param-value>
      </init-param>
      <init-param>
         <param-name>databaseDriver</param-name>
         <param-value>com.ibm.db2j.jdbc.DB2jDriver</param-value>
      </init-param>
      <init-param>
         <param-name>databaseName</param-name>
         <param-value>jdbc:db2j:animalsurvey</param-value>
      </init-param>
   </servlet>

   <!-- Servlet mappings -->
   <servlet-mapping>
      <servlet-name>welcome1</servlet-name>
      <url-pattern>/welcome1</url-pattern>
   </servlet-mapping>

   <servlet-mapping>
      <servlet-name>welcome2</servlet-name>
      <url-pattern>/welcome2</url-pattern>
   </servlet-mapping>

   <servlet-mapping>
      <servlet-name>welcome3</servlet-name>
      <url-pattern>/welcome3</url-pattern>
   </servlet-mapping>

   <servlet-mapping>
      <servlet-name>redirect</servlet-name>
      <url-pattern>/redirect</url-pattern>
   </servlet-mapping>

   <servlet-mapping>
      <servlet-name>animalsurvey</servlet-name>
      <url-pattern>/animalsurvey</url-pattern>
   </servlet-mapping>

</web-app>

<!-- 
/**************************************************************************
 * (C) Copyright 1992-2003 by Deitel & Associates, Inc. and               *
 * Prentice Hall. All Rights Reserved.                                    *
 *                                                                        *
 * DISCLAIMER: The authors and publisher of this book have used their     *
 * best efforts in preparing the book. These efforts include the          *
 * development, research, and testing of the theories and programs        *
 * to determine their effectiveness. The authors and publisher make       *
 * no warranty of any kind, expressed or implied, with regard to these    *
 * programs or to the documentation contained in these books. The authors *
 * and publisher shall not be liable in any event for incidental or       *
 * consequential damages in connection with, or arising out of, the       *
 * furnishing, performance, or use of these programs.                     *
 *************************************************************************/
 -->