<?xml version="1.0" encoding="UTF-8"?>

<!-- Changed spec level to 2.4 PAFH 8/23/2006 -->
<web-app id="WebApp_9" version="2.4" 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">

   <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>
         /web-context.properties
      </param-value>
   </context-param>

   <display-name>sakai-metaobj</display-name>
   <description>Sakai Meta Object</description>

   <filter>
      <filter-name>sakai.request</filter-name>
      <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
      <init-param>
         <param-name>upload.enabled</param-name>
         <param-value>false</param-value>
      </init-param>
   </filter>

   <filter-mapping>
      <filter-name>sakai.request</filter-name>
      <servlet-name>sakai.metaobj</servlet-name>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
   </filter-mapping>

   <filter-mapping>
      <filter-name>sakai.request</filter-name>
      <servlet-name>sakai.metaobj.formView</servlet-name>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
   </filter-mapping>

   <!--
    <filter-mapping>
        <filter-name>sakai.request</filter-name>
        <servlet-name>springapp</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    -->
   <servlet>
      <servlet-name>springapp</servlet-name>
      <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
      <!--       <servlet-class>org.sakaiproject.metaobj.shared.control.servlet.SakaiComponentDispatchServlet</servlet-class>-->
      <load-on-startup>1</load-on-startup>
   </servlet>

   <servlet>
      <servlet-name>sakai.metaobj</servlet-name>
      <servlet-class>org.sakaiproject.spring.util.SpringTool</servlet-class>
      <init-param>
         <param-name>default</param-name>
         <param-value>listStructuredArtifactDefinitions</param-value>
      </init-param>
      <init-param>
         <param-name>path</param-name>
         <param-value></param-value>
      </init-param>
      <load-on-startup>2</load-on-startup>
   </servlet>

   <servlet>
      <servlet-name>sakai.metaobj.formView</servlet-name>
      <servlet-class>org.sakaiproject.spring.util.SpringTool</servlet-class>
      <init-param>
         <param-name>path</param-name>
         <param-value></param-value>
      </init-param>

      <init-param>
         <param-name>default</param-name>
         <param-value>formView</param-value>
      </init-param>
      <init-param>
         <param-name>default.last.view</param-name>
         <param-value>true</param-value>
      </init-param>
      <!-- Changed ordering - PAFH 8/23/2006 -->
      <load-on-startup>2</load-on-startup>
   </servlet>

   <servlet>
      <servlet-name>repository</servlet-name>
      <servlet-class>org.sakaiproject.metaobj.shared.control.servlet.FileDownloadServlet</servlet-class>
      <load-on-startup>2</load-on-startup>
   </servlet>


   <listener>
      <listener-class>org.sakaiproject.metaobj.utils.ioc.web.WebContextLoaderListener</listener-class>
   </listener>
   <!--
      <listener>
         <listener-class>org.sakaiproject.metaobj.utils.BeanFactory</listener-class>
      </listener>
    -->
   <listener>
      <listener-class>org.sakaiproject.util.ToolListener</listener-class>
   </listener>
   <!--
       <listener>
           <listener-class>org.sakaiproject.metaobj.shared.control.SessionListener</listener-class>
       </listener>
   -->

   <servlet-mapping>
      <servlet-name>springapp</servlet-name>
      <url-pattern>*.osp</url-pattern>
   </servlet-mapping>

	<!-- Removed taglib references since the TLDs will be automatically found - PAFH 8/23/2006 -->

<!-- 
   <taglib>
      <taglib-uri>/osp</taglib-uri>
      <taglib-location>/WEB-INF/osp.tld</taglib-location>
   </taglib>

   <taglib>
      <taglib-uri>/spring</taglib-uri>
      <taglib-location>/WEB-INF/spring.tld</taglib-location>
   </taglib>
-->

   <servlet-mapping>
      <servlet-name>repository</servlet-name>
      <url-pattern>/repository/*</url-pattern>
   </servlet-mapping>


</web-app>