20
|
1 <!DOCTYPE web-app
|
|
2 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
|
3 "http://java.sun.com/dtd/web-app_2_3.dtd">
|
|
4
|
|
5 <web-app>
|
|
6 <!-- General description of your web application -->
|
58
|
7 <display-name>
|
|
8 digilib
|
|
9 </display-name>
|
20
|
10 <description>
|
58
|
11 This is the web frontend of the Digital Document Library.
|
20
|
12 </description>
|
58
|
13 <!-- The Scaler servlet -->
|
20
|
14 <servlet>
|
58
|
15 <servlet-name>
|
|
16 Scaler
|
|
17 </servlet-name>
|
|
18 <description>
|
|
19 The servlet to scale the digilib images.
|
|
20 </description>
|
|
21 <servlet-class>
|
|
22 digilib.servlet.Scaler
|
|
23 </servlet-class>
|
|
24 <!-- parameters to the servlet -->
|
|
25 <init-param>
|
|
26 <param-name>
|
|
27 config-file
|
|
28 </param-name>
|
|
29 <param-value>
|
|
30 /docuserver/www/digitallibrary/WEB-INF/digilib-config.xml
|
|
31 </param-value>
|
|
32 </init-param>
|
|
33 <!-- Load this servlet at server startup time -->
|
|
34 <load-on-startup>
|
|
35 5
|
|
36 </load-on-startup>
|
|
37 </servlet>
|
|
38
|
|
39 <!-- We want to finger around with the default JSP servlet... -->
|
|
40 <servlet>
|
|
41 <servlet-name>
|
|
42 doc-jsp
|
|
43 </servlet-name>
|
|
44 <servlet-class>
|
|
45 org.apache.jasper.servlet.JspServlet
|
|
46 </servlet-class>
|
|
47 <!-- parameters to the JSP servlet -->
|
|
48 <init-param>
|
|
49 <param-name>
|
|
50 logVerbosityLevel
|
|
51 </param-name>
|
|
52 <param-value>
|
|
53 WARNING
|
|
54 </param-value>
|
|
55 </init-param>
|
|
56 <init-param>
|
|
57 <param-name>
|
|
58 config-file
|
|
59 </param-name>
|
|
60 <param-value>
|
|
61 /docuserver/www/digitallibrary/WEB-INF/digilib-config.xml
|
|
62 </param-value>
|
|
63 </init-param>
|
|
64 <load-on-startup>
|
|
65 3
|
|
66 </load-on-startup>
|
20
|
67 </servlet>
|
|
68
|
58
|
69 <!-- The mapping for the Scaler servlet -->
|
|
70 <servlet-mapping>
|
|
71 <servlet-name>
|
|
72 Scaler
|
|
73 </servlet-name>
|
|
74 <url-pattern>
|
|
75 /servlet/Scaler/*
|
|
76 </url-pattern>
|
|
77 </servlet-mapping>
|
20
|
78
|
58
|
79 <!-- The mapping for the JSP servlet -->
|
|
80 <servlet-mapping>
|
|
81 <servlet-name>
|
|
82 doc-jsp
|
|
83 </servlet-name>
|
|
84 <url-pattern>
|
|
85 *.jsp
|
|
86 </url-pattern>
|
|
87 </servlet-mapping>
|
20
|
88
|
58
|
89 <!-- region for authenticated access -->
|
20
|
90 <security-constraint>
|
58
|
91 <web-resource-collection>
|
|
92 <web-resource-name>
|
|
93 Authenticated Digilib
|
|
94 </web-resource-name>
|
|
95 <url-pattern>
|
|
96 /authenticated/*
|
|
97 </url-pattern>
|
|
98 </web-resource-collection>
|
|
99 <!-- we need a default user -->
|
|
100 <auth-constraint>
|
|
101 <role-name>
|
|
102 user
|
|
103 </role-name>
|
|
104 </auth-constraint>
|
|
105 </security-constraint>
|
20
|
106 <login-config>
|
58
|
107 <!--
|
|
108 <auth-method>BASIC</auth-method>
|
|
109 <realm-name>digilib</realm-name>
|
|
110 -->
|
|
111 <auth-method>
|
|
112 FORM
|
|
113 </auth-method>
|
|
114 <form-login-config>
|
|
115 <form-login-page>
|
|
116 /digilib-login.html
|
|
117 </form-login-page>
|
|
118 <form-error-page>
|
|
119 /digilib-fail.html
|
|
120 </form-error-page>
|
|
121 </form-login-config>
|
20
|
122 </login-config>
|
|
123 </web-app>
|