source: greenstone3/trunk/web/WEB-INF/web.xml@ 14125

Last change on this file since 14125 was 10287, checked in by kjdon, 19 years ago

have removed the installation specific init-param gsdl3_home from the servlets. so now there is no processing that needs to be done to this file, so I've removed web.xml.in and added it back as web.xml

  • Property svn:keywords set to Author Date Id Revision
File size: 8.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<!DOCTYPE web-app
4 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
5 "http://java.sun.com/dtd/web-app_2_3.dtd">
6
7<!-- this is based on a sample web.xml file provided by
8http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt
9-->
10<web-app>
11
12
13 <!-- General description of your web application -->
14
15 <display-name>GSDL3</display-name>
16 <description>
17 Greenstone digital library version 3.
18 </description>
19
20
21 <!-- Context initialization parameters that define shared
22 String constants used within your application, which
23 can be customized by the system administrator who is
24 installing your application. The values actually
25 assigned to these parameters can be retrieved in a
26 servlet or JSP page by calling:
27
28 String value =
29 getServletContext().getInitParameter("name");
30
31 where "name" matches the <param-name> element of
32 one of these initialization parameters.
33
34 You can define any number of context initialization
35 parameters, including zero.
36 -->
37
38 <context-param>
39 <param-name>webmaster</param-name>
40 <param-value>[email protected]</param-value>
41 <description>
42 The EMAIL address of the administrator to whom questions
43 and comments about this application should be addressed.
44 </description>
45 </context-param>
46
47
48 <!-- Servlet definitions for the servlets that make up
49 your web application, including initialization
50 parameters. With Tomcat, you can also send requests
51 to servlets not listed here with a request like this:
52
53 http://localhost:8080/{context-path}/servlet/{classname}
54
55 but this usage is not guaranteed to be portable. It also
56 makes relative references to images and other resources
57 required by your servlet more complicated, so defining
58 all of your servlets (and defining a mapping to them with
59 a servlet-mapping element) is recommended.
60
61 Servlet initialization parameters can be retrieved in a
62 servlet or JSP page by calling:
63
64 String value =
65 getServletConfig().getInitParameter("name");
66
67 where "name" matches the <param-name> element of
68 one of these initialization parameters.
69
70 You can define any number of servlets, including zero.
71 -->
72
73 <servlet>
74 <servlet-name>tester</servlet-name>
75 <description>a test servlet</description>
76 <servlet-class>TestServlet</servlet-class>
77 </servlet>
78
79 <servlet>
80 <servlet-name>library</servlet-name>
81 <description>standard gsdl3 library program: uses localsite and the default interface</description>
82 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
83 <init-param>
84 <param-name>library_name</param-name>
85 <param-value>library</param-value>
86 </init-param>
87 <init-param>
88 <param-name>site_name</param-name>
89 <param-value>localsite</param-value>
90 </init-param>
91 <init-param>
92 <param-name>interface_name</param-name>
93 <param-value>default</param-value>
94 </init-param>
95 <init-param>
96 <param-name>default_lang</param-name>
97 <param-value>en</param-value>
98 </init-param>
99 </servlet>
100
101 <servlet>
102 <servlet-name>gateway</servlet-name>
103 <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
104 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
105 <init-param>
106 <param-name>library_name</param-name>
107 <param-value>gateway</param-value>
108 </init-param>
109 <init-param>
110 <param-name>site_name</param-name>
111 <param-value>gateway</param-value>
112 </init-param>
113 <init-param>
114 <param-name>interface_name</param-name>
115 <param-value>default</param-value>
116 </init-param>
117 <init-param>
118 <param-name>default_lang</param-name>
119 <param-value>en</param-value>
120 </init-param>
121 </servlet>
122
123 <servlet>
124 <servlet-name>classic-library</servlet-name>
125 <description>Greenstone 2 lookalike library program: uses localsite with the classic interface</description>
126 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
127 <init-param>
128 <param-name>library_name</param-name>
129 <param-value>classic</param-value>
130 </init-param>
131 <init-param>
132 <param-name>site_name</param-name>
133 <param-value>localsite</param-value>
134 </init-param>
135 <init-param>
136 <param-name>interface_name</param-name>
137 <param-value>classic</param-value>
138 </init-param>
139 <init-param>
140 <param-name>default_lang</param-name>
141 <param-value>en</param-value>
142 </init-param>
143 <init-param>
144 <param-name>params_class</param-name>
145 <param-value>NZDLParams</param-value>
146 </init-param>
147 </servlet>
148
149 <!-- axis servlets -->
150 <servlet>
151 <servlet-name>AxisServlet</servlet-name>
152 <display-name>Apache-Axis Servlet</display-name>
153 <servlet-class>
154 org.apache.axis.transport.http.AxisServlet
155 </servlet-class>
156 </servlet>
157
158 <servlet>
159 <servlet-name>AdminServlet</servlet-name>
160 <display-name>Axis Admin Servlet</display-name>
161 <servlet-class>
162 org.apache.axis.transport.http.AdminServlet
163 </servlet-class>
164 <load-on-startup>100</load-on-startup>
165 </servlet>
166
167 <servlet>
168 <servlet-name>SOAPMonitorService</servlet-name>
169 <display-name>SOAPMonitorService</display-name>
170 <servlet-class>
171 org.apache.axis.monitor.SOAPMonitorService
172 </servlet-class>
173 <init-param>
174 <param-name>SOAPMonitorPort</param-name>
175 <param-value>5001</param-value>
176 </init-param>
177 <load-on-startup>100</load-on-startup>
178 </servlet>
179 <!-- Define mappings that are used by the servlet container to
180 translate a particular request URI (context-relative) to a
181 particular servlet. The examples below correspond to the
182 servlet descriptions above. Thus, a request URI like:
183
184 http://localhost:8080/{contextpath}/graph
185
186 will be mapped to the "graph" servlet, while a request like:
187
188 http://localhost:8080/{contextpath}/saveCustomer.do
189
190 will be mapped to the "controller" servlet.
191
192 Note: context path is determined by the servlet container -
193 in Tomcat, specified in server.xml -kjdon
194 You may define any number of servlet mappings, including zero.
195 It is also legal to define more than one mapping for the same
196 servlet, if you wish to.
197 -->
198 <!--
199 <servlet-mapping>
200 <servlet-name>controller</servlet-name>
201 <url-pattern>*.do</url-pattern>
202 </servlet-mapping>
203
204 <servlet-mapping>
205 <servlet-name>graph</servlet-name>
206 <url-pattern>/graph</url-pattern>
207 </servlet-mapping>
208 -->
209
210 <servlet-mapping>
211 <servlet-name>tester</servlet-name>
212 <url-pattern>/testing</url-pattern>
213 </servlet-mapping>
214
215 <servlet-mapping>
216 <servlet-name>library</servlet-name>
217 <url-pattern>/library</url-pattern>
218 </servlet-mapping>
219
220 <servlet-mapping>
221 <servlet-name>gateway</servlet-name>
222 <url-pattern>/gateway</url-pattern>
223 </servlet-mapping>
224
225 <servlet-mapping>
226 <servlet-name>classic-library</servlet-name>
227 <url-pattern>/classic</url-pattern>
228 </servlet-mapping>
229
230 <!-- axis mappings -->
231 <servlet-mapping>
232 <servlet-name>AxisServlet</servlet-name>
233 <url-pattern>/servlet/AxisServlet</url-pattern>
234 </servlet-mapping>
235
236 <servlet-mapping>
237 <servlet-name>AxisServlet</servlet-name>
238 <url-pattern>*.jws</url-pattern>
239 </servlet-mapping>
240
241 <servlet-mapping>
242 <servlet-name>AxisServlet</servlet-name>
243 <url-pattern>/services/*</url-pattern>
244 </servlet-mapping>
245
246 <!-- uncomment this if you want to use the SOAPMonitorService. You will also
247 need to copy the SOAPMonitorApplet*.class files from
248 gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
249 comms/soap/axis/docs/install.html Appendix for details about how to use this -->
250 <!--
251 <servlet-mapping>
252 <servlet-name>SOAPMonitorService</servlet-name>
253 <url-pattern>/SOAPMonitor</url-pattern>
254 </servlet-mapping>
255 -->
256 <!-- uncomment this if you want the admin servlet -->
257 <!--
258 <servlet-mapping>
259 <servlet-name>AdminServlet</servlet-name>
260 <url-pattern>/servlet/AdminServlet</url-pattern>
261 </servlet-mapping>
262 -->
263
264 <!-- Define the default session timeout for your application,
265 in minutes. From a servlet or JSP page, you can modify
266 the timeout for a particular session dynamically by using
267 HttpSession.getMaxInactiveInterval(). -->
268
269 <session-config>
270 <session-timeout>30</session-timeout> <!-- 30 minutes -->
271 </session-config>
272
273 <!-- axis mime-mappings -->
274 <mime-mapping>
275 <extension>wsdl</extension>
276 <mime-type>text/xml</mime-type>
277 </mime-mapping>
278
279 <mime-mapping>
280 <extension>xsd</extension>
281 <mime-type>text/xml</mime-type>
282 </mime-mapping>
283
284</web-app>
285
286
Note: See TracBrowser for help on using the repository browser.