comparison client/digitallibrary/WEB-INF/web.xml @ 57:58d23f512c80

New DigilibServlet.jar with new version (with DigilibRequest object). Changes in digilib, digicat, dlImage JSP. Initialization now done only once in jspInit. Uses DigilibRequest object to convert old +++-style requests to parameter-style requests and for BaseURL. Prettyfied config files (no authentication is default).
author robcast
date Wed, 28 Aug 2002 20:17:35 +0200
parents 2d8ed5252eb0
children 3f8127e83943
comparison
equal deleted inserted replaced
56:8d9a0abf3626 57:58d23f512c80
1 <!DOCTYPE web-app 1 <!DOCTYPE web-app
2 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 2 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
3 "http://java.sun.com/dtd/web-app_2_3.dtd"> 3 "http://java.sun.com/dtd/web-app_2_3.dtd">
4 4
5 <web-app> 5 <web-app>
6 <!-- General description of your web application --> 6 <!-- General description of your web application -->
7 <display-name> 7 <display-name>
8 digilib 8 digilib
9 </display-name> 9 </display-name>
10 <description> 10 <description>
11 This is the web frontend of the Digital Document Library. 11 This is the web frontend of the Digital Document Library.
12 </description> 12 </description>
13 <!-- The Scaler servlet --> 13 <!-- The Scaler servlet -->
14 <servlet> 14 <servlet>
15 <servlet-name> 15 <servlet-name>
16 Scaler 16 Scaler
17 </servlet-name> 17 </servlet-name>
18 <description> 18 <description>
19 The servlet to scale the digilib images. 19 The servlet to scale the digilib images.
32 </init-param> 32 </init-param>
33 <!-- Load this servlet at server startup time --> 33 <!-- Load this servlet at server startup time -->
34 <load-on-startup> 34 <load-on-startup>
35 5 35 5
36 </load-on-startup> 36 </load-on-startup>
37 </servlet> 37 </servlet>
38 38 <!-- We want to finger around with the default JSP servlet... -->
39 <!-- We want to finger around with the default JSP servlet... --> 39 <servlet>
40 <servlet>
41 <servlet-name> 40 <servlet-name>
42 doc-jsp 41 doc-jsp
43 </servlet-name> 42 </servlet-name>
44 <servlet-class> 43 <servlet-class>
45 org.apache.jasper.servlet.JspServlet 44 org.apache.jasper.servlet.JspServlet
62 </param-value> 61 </param-value>
63 </init-param> 62 </init-param>
64 <load-on-startup> 63 <load-on-startup>
65 3 64 3
66 </load-on-startup> 65 </load-on-startup>
67 </servlet> 66 </servlet>
68 67 <!-- The mapping for the Scaler servlet -->
69 <!-- The mapping for the Scaler servlet --> 68 <servlet-mapping>
70 <servlet-mapping>
71 <servlet-name> 69 <servlet-name>
72 Scaler 70 Scaler
73 </servlet-name> 71 </servlet-name>
74 <url-pattern> 72 <url-pattern>
75 /servlet/Scaler/* 73 /servlet/Scaler/*
76 </url-pattern> 74 </url-pattern>
77 </servlet-mapping> 75 </servlet-mapping>
78 76 <!-- The mapping for the JSP servlet -->
79 <!-- The mapping for the JSP servlet --> 77 <servlet-mapping>
80 <servlet-mapping>
81 <servlet-name> 78 <servlet-name>
82 doc-jsp 79 doc-jsp
83 </servlet-name> 80 </servlet-name>
84 <url-pattern> 81 <url-pattern>
85 *.jsp 82 *.jsp
86 </url-pattern> 83 </url-pattern>
87 </servlet-mapping> 84 </servlet-mapping>
88 85 <!-- region for authenticated access -->
89 <!-- region for authenticated access --> 86 <security-constraint>
90 <security-constraint>
91 <web-resource-collection> 87 <web-resource-collection>
92 <web-resource-name> 88 <web-resource-name>
93 Authenticated Digilib 89 Authenticated Digilib
94 </web-resource-name> 90 </web-resource-name>
95 <url-pattern> 91 <url-pattern>
100 <auth-constraint> 96 <auth-constraint>
101 <role-name> 97 <role-name>
102 user 98 user
103 </role-name> 99 </role-name>
104 </auth-constraint> 100 </auth-constraint>
105 </security-constraint> 101 </security-constraint>
106 <login-config> 102 <login-config>
107 <!-- 103 <!--
108 <auth-method>BASIC</auth-method> 104 <auth-method>BASIC</auth-method>
109 <realm-name>digilib</realm-name> 105 <realm-name>digilib</realm-name>
110 --> 106 -->
111 <auth-method> 107 <auth-method>
112 FORM 108 FORM
117 </form-login-page> 113 </form-login-page>
118 <form-error-page> 114 <form-error-page>
119 /digilib-fail.html 115 /digilib-fail.html
120 </form-error-page> 116 </form-error-page>
121 </form-login-config> 117 </form-login-config>
122 </login-config> 118 </login-config>
123 </web-app> 119 </web-app>