<?xml version="1.0" encoding="ISO-8859-1"?>
 
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
				 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
				 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
				 version="2.4">

	<!-- General description of your web application -->

	<display-name>AJAX Messenger Prototype</display-name>
	<description>AJAX Messenger Prototype</description>


	<!-- Context initialization parameters that define shared
				String constants used within your application, which
				can be customized by the system administrator who is
				installing your application.  The values actually
				assigned to these parameters can be retrieved in a
				servlet or JSP page by calling:

						String value =
							getServletContext().getInitParameter("name");

				where "name" matches the <param-name> element of
				one of these initialization parameters.

				You can define any number of context initialization
				parameters, including zero.


Example:
	<context-param>
		<param-name>sandbox-mode</param-name>
		<param-value>true</param-value>
		<description>Boolean; true to use ebay sandbox server</description>
	</context-param>
	-->


	<!-- Servlet definitions for the servlets that make up
				your web application, including initialization
				parameters.  With Tomcat, you can also send requests
				to servlets not listed here with a request like this:

					http://localhost:8080/{context-path}/servlet/{classname}

				but this usage is not guaranteed to be portable.  It also
				makes relative references to images and other resources
				required by your servlet more complicated, so defining
				all of your servlets (and defining a mapping to them with
				a servlet-mapping element) is recommended.

				Servlet initialization parameters can be retrieved in a
				servlet or JSP page by calling:

						String value =
							getServletConfig().getInitParameter("name");

				where "name" matches the <param-name> element of
				one of these initialization parameters.

				You can define any number of servlets, including zero.

	<servlet>
		<servlet-name>Index</servlet-name>
		<servlet-class>maps.Index</servlet-class>
		<init-param>
			<param-name>param1</param-name>
			<param-value>Some value</param-value>
		</init-param>
		<load-on-startup>5</load-on-startup>
	</servlet>
	-->

	<servlet>
		<servlet-name>Controller</servlet-name>
		<servlet-class>ajax.Controller</servlet-class>
	</servlet>

	<servlet>
		<servlet-name>Communicate</servlet-name>
		<servlet-class>ajax.Communicate</servlet-class>
	</servlet>

	<servlet>
		<servlet-name>Contacts</servlet-name>
		<servlet-class>ajax.Contacts</servlet-class>
	</servlet>


	<!-- Define mappings that are used by the servlet container to
				translate a particular request URI (context-relative) to a
				particular servlet.  The examples below correspond to the
				servlet descriptions above.  Thus, a request URI like:

					http://localhost:8080/{contextpath}/graph

				will be mapped to the "graph" servlet, while a request like:

					http://localhost:8080/{contextpath}/saveCustomer.do

				will be mapped to the "controller" servlet.

				You may define any number of servlet mappings, including zero.
				It is also legal to define more than one mapping for the same
				servlet, if you wish to.

	<servlet-mapping>
		<servlet-name>Controller</servlet-name>
		<url-pattern>/</url-pattern>
	</servlet-mapping>
	-->

	<servlet-mapping>
		<servlet-name>Controller</servlet-name>
		<url-pattern>/Index</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>Communicate</servlet-name>
		<url-pattern>/Communicate</url-pattern>
	</servlet-mapping>
	
	<servlet-mapping>
		<servlet-name>Contacts</servlet-name>
		<url-pattern>/Contacts</url-pattern>
	</servlet-mapping>

	<!-- Define the default session timeout for your application,
				in minutes.  From a servlet or JSP page, you can modify
				the timeout for a particular session dynamically by using
				HttpSession.getMaxInactiveInterval(). -->

	<session-config>
		<session-timeout>30</session-timeout>    <!-- 30 minutes -->
	</session-config>

	<!-- JSP Configuration -->
	<jsp-config>
		<jsp-property-group>  
			<url-pattern>*.jsp</url-pattern>
			<el-ignored>false</el-ignored> 
		</jsp-property-group>
	</jsp-config>

  <!--resource-ref>
		<description>CCIS MySQL Connection</description>
		<res-ref-name>jdbc/adkap</res-ref-name>
		<res-type>javax.sql.DataSource</res-type>
		<res-auth>Container</res-auth>
  </resource-ref-->

</web-app>
