changeset 58:2d8ed5252eb0

Made web.xml nicer. (ROC)
author robcast
date Tue, 27 Aug 2002 13:28:46 +0200
parents be2a8a672344
children 8d9a0abf3626
files client/digitallibrary/WEB-INF/web.xml
diffstat 1 files changed, 106 insertions(+), 66 deletions(-) [+]
line wrap: on
line diff
--- a/client/digitallibrary/WEB-INF/web.xml	Tue Aug 27 12:33:30 2002 +0200
+++ b/client/digitallibrary/WEB-INF/web.xml	Tue Aug 27 13:28:46 2002 +0200
@@ -3,81 +3,121 @@
     "http://java.sun.com/dtd/web-app_2_3.dtd">
 
 <web-app>
-
-
     <!-- General description of your web application -->
-
-    <display-name>Docuserver</display-name>
+    <display-name>
+        digilib
+    </display-name>
     <description>
-      This is the web frontend of Docuserver.
+        This is the web frontend of the Digital Document Library.
     </description>
-
-
+    <!-- The Scaler servlet -->
     <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-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>
+        <!-- parameters to the JSP servlet -->
+        <init-param>
+            <param-name>
+                logVerbosityLevel
+            </param-name>
+            <param-value>
+                WARNING
+            </param-value>
+        </init-param>
+        <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>
 
-  <!-- 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 Scaler servlet -->
+    <servlet-mapping>
+        <servlet-name>
+            Scaler
+        </servlet-name>
+        <url-pattern>
+            /servlet/Scaler/*
+        </url-pattern>
+    </servlet-mapping>
 
-
-  <!-- The mapping for the JSP servlet -->
-  <servlet-mapping>
-    <servlet-name>doc-jsp</servlet-name>
-    <url-pattern>*.jsp</url-pattern>
-  </servlet-mapping>
-
+    <!-- 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 -->
+    <!-- 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>
-
+        <web-resource-collection>
+            <web-resource-name>
+                Authenticated Digilib
+            </web-resource-name>
+            <url-pattern>
+                /authenticated/*
+            </url-pattern>
+        </web-resource-collection>
+        <!-- we need a default user -->
+        <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>
-
+        <!--
+        <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>