10
|
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
|
|
7
|
|
8 <!-- General description of your web application -->
|
|
9
|
|
10 <display-name>Docuserver</display-name>
|
|
11 <description>
|
|
12 This is the web frontend of Docuserver.
|
|
13 </description>
|
|
14
|
|
15
|
|
16 <servlet>
|
|
17 <servlet-name>Scaler</servlet-name>
|
|
18 <description>
|
|
19 The servlet to scale the digilib images.
|
|
20 </description>
|
|
21 <servlet-class>digilib.servlet.Scaler</servlet-class>
|
|
22 <!-- parameters to the servlet -->
|
|
23 <init-param>
|
|
24 <param-name>config-file</param-name>
|
|
25 <param-value>
|
|
26 /docuserver/www/digitallibrary/WEB-INF/digilib-config.xml
|
|
27 </param-value>
|
|
28 </init-param>
|
|
29 <!-- Load this servlet at server startup time -->
|
|
30 <load-on-startup>5</load-on-startup>
|
|
31 </servlet>
|
|
32
|
|
33 <!-- We want to finger around with the default JSP servlet... -->
|
|
34 <servlet>
|
|
35 <servlet-name>doc-jsp</servlet-name>
|
|
36 <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
|
|
37 <init-param>
|
|
38 <param-name>logVerbosityLevel</param-name>
|
|
39 <param-value>WARNING</param-value>
|
|
40 </init-param>
|
|
41 <!-- parameters to the servlet -->
|
|
42 <init-param>
|
|
43 <param-name>config-file</param-name>
|
|
44 <param-value>
|
|
45 /docuserver/www/digitallibrary/WEB-INF/digilib-config.xml
|
|
46 </param-value>
|
|
47 </init-param>
|
|
48 <load-on-startup>3</load-on-startup>
|
|
49 </servlet>
|
|
50
|
|
51
|
|
52 <!-- The mapping for the JSP servlet -->
|
|
53 <servlet-mapping>
|
|
54 <servlet-name>doc-jsp</servlet-name>
|
|
55 <url-pattern>*.jsp</url-pattern>
|
|
56 </servlet-mapping>
|
|
57
|
|
58
|
|
59 <!-- region for authenticated access -->
|
|
60 <security-constraint>
|
|
61 <web-resource-collection>
|
|
62 <web-resource-name>Authenticated Digilib</web-resource-name>
|
|
63 <url-pattern>/authenticated/*</url-pattern>
|
|
64 </web-resource-collection>
|
|
65 <auth-constraint>
|
|
66 <role-name>user</role-name>
|
|
67 </auth-constraint>
|
|
68 </security-constraint>
|
|
69
|
|
70 <login-config>
|
|
71 <!--
|
|
72 <auth-method>BASIC</auth-method>
|
|
73 <realm-name>digilib</realm-name>
|
|
74 -->
|
|
75 <auth-method>FORM</auth-method>
|
|
76 <form-login-config>
|
|
77 <form-login-page>/digilib-login.html</form-login-page>
|
|
78 <form-error-page>/digilib-fail.html</form-error-page>
|
|
79 </form-login-config>
|
|
80
|
|
81 </login-config>
|
|
82
|
|
83 </web-app>
|