<?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>
  <!-- Used by the JSTL I18N actions -->
  <context-param>
    <param-name>
      javax.servlet.jsp.jstl.fmt.fallbackLocale
    </param-name>
    <param-value>
      en
    </param-value>
  </context-param>

  <!-- Used by the JSTL database actions -->
 <!--<context-param>
    <param-name>
      javax.servlet.jsp.jstl.sql.dataSource
    </param-name>
    <param-value>
      jdbc:mysql://mcdb.net/mcdb?user=mcdb;password=mc8db3
    </param-value>
    <param-name>  
      com.mysql.jdbc.Driver
    </param-name>
  </context-param>
-->

  <!-- Used by the ResourceManagerListener in Chapter 18  -->
<!-- <context-param>
    <param-name>driverClass</param-name>
    <param-value>
      com.mysql.jdbc.Driver
    </param-value>
  </context-param>

  <context-param>
    <param-name>jdbcURL</param-name>
    <param-value>
      jdbc:mysql://mcdb.net/mcdb?user=mcdb;password=mc8db3
    </param-value>
  </context-param>-->

  <!-- Filter and listener configurations for Chapter 18 -->

  <!-- <listener>
    <listener-class>
      com.travis.jsp.servlets.ResourceManagerListener
    </listener-class>
  </listener> -->

  <!-- The Welcome File List -->
  <welcome-file-list>
    <welcome-file>mcdbSearch.jsp</welcome-file>
  </welcome-file-list>

<!--
  Uncomment if you want all exceptions and 500 status codes to
  be handled by the customized error page.
  <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/errorDispatcher</location>
  </error-page>

  <error-page>
    <error-code>500</error-code>
    <location>/errorDispatcher</location>
  </error-page>
-->

  <!-- 
    This resource reference is only used to test the JNDI config described 
    in Chapter 23. None of the examples use it.
  -->
  <!--<resource-ref>
    <description>
      JNDI DataSource for example database
    </description>
    <res-ref-name>jdbc/mcdb</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Sharable</res-sharing-scope>
  </resource-ref>-->

  <security-role>
    <role-name>admin</role-name>
  </security-role>
  <security-role>
    <role-name>user</role-name>
  </security-role>

</web-app>

