<!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>	 
  <display-name>Simple Spring Web Application</display-name>
  
  <!-- ContextLoaderListener creates a root web-application-context for the web-application and puts it in the ServletContext.
       This context can be used to load and unload the spring-managed beans ir-respective of what technology is being used in
       the controller layer(Struts or Spring MVC).
  -->
  
  <!-- 
  <listener>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
	  
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext.xml</param-value>
  </context-param>
  -->
	  
  <!--
	  DispatcherServlet creates its own WebApplicationContext and the handlers/controllers/view-resolvers are managed 
	  by this context.
  -->	  
  <servlet>
      <servlet-name>dispatcherServlet</servlet-name>
      <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
	  <!--
      <init-param>
      	<param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/dispatcherServlet-servlet.xml</param-value>
      </init-param>  
	  -->
      <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
      <servlet-name>dispatcherServlet</servlet-name>
      <url-pattern>/</url-pattern>
  </servlet-mapping>
  
</web-app>
