diff client/digitallibrary/WEB-INF/web.xml @ 20:d407cb901df4

Initial revision
author robcast
date Thu, 17 Jan 2002 15:29:55 +0100
parents
children 2d8ed5252eb0 85126da2ae21
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/digitallibrary/WEB-INF/web.xml	Thu Jan 17 15:29:55 2002 +0100
@@ -0,0 +1,83 @@
+<!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>
+
+
+    <!-- General description of your web application -->
+
+    <display-name>Docuserver</display-name>
+    <description>
+      This is the web frontend of Docuserver.
+    </description>
+
+
+    <servlet>
+      <servlet-name>Scaler</servlet-name>
+      <description>
+	The servlet to scale the digilib images.
+      </description>
+      <servlet-class>digilib.servlet.Scaler</servlet-class>
+      <!-- parameters to the servlet -->
+      <init-param>
+        <param-name>config-file</param-name>
+	<param-value>
+	  /docuserver/www/digitallibrary/WEB-INF/digilib-config.xml
+	</param-value>
+      </init-param>
+      <!-- Load this servlet at server startup time -->
+      <load-on-startup>5</load-on-startup>
+    </servlet>
+
+  <!-- We want to finger around with the default JSP servlet... -->
+  <servlet>
+    <servlet-name>doc-jsp</servlet-name>
+    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
+    <init-param>
+      <param-name>logVerbosityLevel</param-name>
+      <param-value>WARNING</param-value>
+    </init-param>
+      <!-- parameters to the servlet -->
+      <init-param>
+        <param-name>config-file</param-name>
+	<param-value>
+	  /docuserver/www/digitallibrary/WEB-INF/digilib-config.xml
+	</param-value>
+      </init-param>
+    <load-on-startup>3</load-on-startup>
+  </servlet>
+
+
+  <!-- The mapping for the JSP servlet -->
+  <servlet-mapping>
+    <servlet-name>doc-jsp</servlet-name>
+    <url-pattern>*.jsp</url-pattern>
+  </servlet-mapping>
+
+
+  <!-- region for authenticated access -->
+    <security-constraint>
+      <web-resource-collection>
+        <web-resource-name>Authenticated Digilib</web-resource-name>
+	<url-pattern>/authenticated/*</url-pattern>
+      </web-resource-collection>
+      <auth-constraint>
+        <role-name>user</role-name>
+      </auth-constraint>
+   </security-constraint>
+
+    <login-config>
+<!--
+      <auth-method>BASIC</auth-method>
+      <realm-name>digilib</realm-name> 
+-->
+      <auth-method>FORM</auth-method>
+      <form-login-config>
+        <form-login-page>/digilib-login.html</form-login-page>
+	<form-error-page>/digilib-fail.html</form-error-page>
+      </form-login-config>
+
+    </login-config>
+
+</web-app>