<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>
  <!-- Register names for the ShowItem and ShowPurchases
       servlets. These names will be used with servlet-mapping
       to set custom URLs.
  -->
  <servlet>
    <servlet-name>ShowItem</servlet-name>
    <servlet-class>moreservlets.ShowItem</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>ShowPurchases</servlet-name>
    <servlet-class>moreservlets.ShowPurchases</servlet-class>
  </servlet>

  <!-- Set the URL http://host/webAppName/DisplayPurchases
       to invoke the servlet that would otherwise be
       available with the URL 
       http://host/webAppName/servlet/moreservlets.ShowPurchases
  -->
  <servlet-mapping>
    <servlet-name>ShowPurchases</servlet-name>
    <url-pattern>/DisplayPurchases</url-pattern>
  </servlet-mapping>

  <!-- Set the URL http://host/webAppName/DisplayItem
       to invoke the servlet that would otherwise be
       available with the URL 
       http://host/webAppName/servlet/moreservlets.ShowItem
  -->
  <servlet-mapping>
    <servlet-name>ShowItem</servlet-name>
    <url-pattern>/DisplayItem</url-pattern>
  </servlet-mapping>
  
  <!-- If URL gives a directory but no filename, try index.jsp
       first and index.html second. If neither is found,
       the result is server specific (e.g., a directory 
       listing).  
  -->
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>
