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

Last change on this file since 24009 was 24009, checked in by sjm84, 13 years ago

Another round of improvements to the oran skin including a tree view of the classifiers

  • Property svn:keywords set to Author Date Id Revision
File size: 13.6 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 <!-- General description of your web application -->
13
14 <display-name>GSDL3</display-name>
15 <description>
16 Greenstone digital library version 3.
17 </description>
18
19
20 <!-- Context initialization parameters that define shared
21 String constants used within your application, which
22 can be customized by the system administrator who is
23 installing your application. The values actually
24 assigned to these parameters can be retrieved in a
25 servlet or JSP page by calling:
26
27 String value =
28 getServletContext().getInitParameter("name");
29
30 where "name" matches the <param-name> element of
31 one of these initialization parameters.
32
33 You can define any number of context initialization
34 parameters, including zero.
35 -->
36
37 <context-param>
38 <param-name>webmaster</param-name>
39 <param-value>[email protected]</param-value>
40 <description>
41 The EMAIL address of the administrator to whom questions
42 and comments about this application should be addressed.
43 </description>
44 </context-param>
45
46
47 <!-- Servlet definitions for the servlets that make up
48 your web application, including initialization
49 parameters. With Tomcat, you can also send requests
50 to servlets not listed here with a request like this:
51
52 http://localhost:8080/{context-path}/servlet/{classname}
53
54 but this usage is not guaranteed to be portable. It also
55 makes relative references to images and other resources
56 required by your servlet more complicated, so defining
57 all of your servlets (and defining a mapping to them with
58 a servlet-mapping element) is recommended.
59
60 Servlet initialization parameters can be retrieved in a
61 servlet or JSP page by calling:
62
63 String value =
64 getServletConfig().getInitParameter("name");
65
66 where "name" matches the <param-name> element of
67 one of these initialization parameters.
68
69 You can define any number of servlets, including zero.
70 -->
71
72 <servlet>
73 <servlet-name>tester</servlet-name>
74 <description>a test servlet</description>
75 <servlet-class>TestServlet</servlet-class>
76 </servlet>
77
78 <!-- For client side text fetching -->
79 <servlet>
80 <servlet-name>grabtext</servlet-name>
81 <description>Grabs text for client-side display with minimal overhead.</description>
82 <servlet-class>org.greenstone.gsdl3.ClientSideServlet</servlet-class>
83 </servlet>
84
85
86 <servlet>
87 <servlet-name>dev</servlet-name>
88 <description>A new skin engine still in development based on the standard gsdl3 library program</description>
89 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
90 <init-param>
91 <param-name>library_name</param-name>
92 <param-value>dev</param-value>
93 </init-param>
94 <init-param>
95 <param-name>site_name</param-name>
96 <param-value>localsite</param-value>
97 </init-param>
98 <init-param>
99 <param-name>interface_name</param-name>
100 <param-value>oran</param-value>
101 </init-param>
102 <init-param>
103 <param-name>receptionist_class</param-name>
104 <param-value>DefaultReceptionist</param-value>
105 </init-param>
106 <init-param>
107 <param-name>default_lang</param-name>
108 <param-value>en</param-value>
109 </init-param>
110 </servlet>
111
112 <servlet>
113 <servlet-name>Format</servlet-name>
114 <description>A new skin engine still in development based on the standard gsdl3 library program</description>
115 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
116 <init-param>
117 <param-name>library_name</param-name>
118 <param-value>format</param-value>
119 </init-param>
120 <init-param>
121 <param-name>site_name</param-name>
122 <param-value>localsite</param-value>
123 </init-param>
124 <init-param>
125 <param-name>interface_name</param-name>
126 <param-value>oran</param-value>
127 </init-param>
128 <init-param>
129 <param-name>receptionist_class</param-name>
130 <param-value>FormatReceptionist</param-value>
131 </init-param>
132 <init-param>
133 <param-name>default_lang</param-name>
134 <param-value>en</param-value>
135 </init-param>
136 </servlet>
137
138
139 <servlet>
140 <servlet-name>gs2-library</servlet-name>
141 <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description>
142 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
143 <init-param>
144 <param-name>library_name</param-name>
145 <param-value>library</param-value>
146 </init-param>
147 <init-param>
148 <param-name>site_name</param-name>
149 <param-value>localsite</param-value>
150 </init-param>
151 <init-param>
152 <param-name>interface_name</param-name>
153 <param-value>gs2</param-value>
154 </init-param>
155 <init-param>
156 <param-name>default_lang</param-name>
157 <param-value>en</param-value>
158 </init-param>
159 <init-param>
160 <param-name>session_expiration</param-name>
161 <param-value>1800</param-value>
162 </init-param>
163 <init-param>
164 <param-name>params_class</param-name>
165 <param-value>GS2Params</param-value>
166 </init-param>
167 </servlet>
168
169 <servlet>
170 <servlet-name>nzdl-library</servlet-name>
171 <description>gsdl3 library program</description>
172 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
173 <init-param>
174 <param-name>library_name</param-name>
175 <param-value>nzdl</param-value>
176 </init-param>
177 <init-param>
178 <param-name>site_name</param-name>
179 <param-value>nzdl</param-value>
180 </init-param>
181 <init-param>
182 <param-name>interface_name</param-name>
183 <param-value>nzdl</param-value>
184 </init-param>
185 <init-param>
186 <param-name>default_lang</param-name>
187 <param-value>en</param-value>
188 </init-param>
189 <init-param>
190 <param-name>params_class</param-name>
191 <param-value>NZDLParams</param-value>
192 </init-param>
193 <init-param>
194 <param-name>session_expiration</param-name>
195 <param-value>600</param-value>
196 </init-param>
197 </servlet>
198
199 <servlet>
200 <servlet-name>gateway</servlet-name>
201 <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
202 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
203 <init-param>
204 <param-name>library_name</param-name>
205 <param-value>gateway</param-value>
206 </init-param>
207 <init-param>
208 <param-name>site_name</param-name>
209 <param-value>gateway</param-value>
210 </init-param>
211 <init-param>
212 <param-name>interface_name</param-name>
213 <param-value>default</param-value>
214 </init-param>
215 <init-param>
216 <param-name>default_lang</param-name>
217 <param-value>en</param-value>
218 </init-param>
219 </servlet>
220
221 <servlet>
222 <servlet-name>gs3-library</servlet-name>
223 <description>standard gsdl3 library program: uses localsite and the default interface</description>
224 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
225 <init-param>
226 <param-name>library_name</param-name>
227 <param-value>gs3library</param-value>
228 </init-param>
229 <init-param>
230 <param-name>site_name</param-name>
231 <param-value>localsite</param-value>
232 </init-param>
233 <init-param>
234 <param-name>interface_name</param-name>
235 <param-value>default-client-xslt</param-value>
236 </init-param>
237 <init-param>
238 <param-name>default_lang</param-name>
239 <param-value>en</param-value>
240 </init-param>
241 <init-param>
242 <param-name>allow_client_side_xslt</param-name>
243 <param-value>true</param-value>
244 </init-param>
245 </servlet>
246
247 <!-- axis servlets -->
248 <servlet>
249 <servlet-name>AxisServlet</servlet-name>
250 <display-name>Apache-Axis Servlet</display-name>
251 <servlet-class>
252 org.apache.axis.transport.http.AxisServlet
253 </servlet-class>
254 </servlet>
255
256 <servlet>
257 <servlet-name>AdminServlet</servlet-name>
258 <display-name>Axis Admin Servlet</display-name>
259 <servlet-class>
260 org.apache.axis.transport.http.AdminServlet
261 </servlet-class>
262 <load-on-startup>100</load-on-startup>
263 </servlet>
264
265 <servlet>
266 <servlet-name>SOAPMonitorService</servlet-name>
267 <display-name>SOAPMonitorService</display-name>
268 <servlet-class>
269 org.apache.axis.monitor.SOAPMonitorService
270 </servlet-class>
271 <init-param>
272 <param-name>SOAPMonitorPort</param-name>
273 <param-value>5001</param-value>
274 </init-param>
275 <load-on-startup>100</load-on-startup>
276 </servlet>
277<servlet>
278 <servlet-name>oaiserver</servlet-name>
279 <description>an oai servlet</description>
280 <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
281 <init-param>
282 <param-name>default_lang</param-name>
283 <param-value>en</param-value>
284 </init-param>
285 <init-param>
286 <param-name>site_name</param-name>
287 <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
288 <param-value>localsite</param-value>
289 </init-param>
290</servlet>
291
292<!--
293<filter>
294 <filter-name>UrlRewriteFilter</filter-name>
295 <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
296</filter>
297
298<filter-mapping>
299 <filter-name>UrlRewriteFilter</filter-name>
300 <url-pattern>/*</url-pattern>
301</filter-mapping>
302-->
303
304 <!-- Define mappings that are used by the servlet container to
305 translate a particular request URI (context-relative) to a
306 particular servlet. The examples below correspond to the
307 servlet descriptions above. Thus, a request URI like:
308
309 http://localhost:8080/{contextpath}/graph
310
311 will be mapped to the "graph" servlet, while a request like:
312
313 http://localhost:8080/{contextpath}/saveCustomer.do
314
315 will be mapped to the "controller" servlet.
316
317 Note: context path is determined by the servlet container -
318 in Tomcat, specified in server.xml -kjdon
319 You may define any number of servlet mappings, including zero.
320 It is also legal to define more than one mapping for the same
321 servlet, if you wish to.
322 -->
323 <!--
324
325 <servlet-mapping>
326 <servlet-name>controller</servlet-name>
327 <url-pattern>*.do</url-pattern>
328 </servlet-mapping>
329
330 <servlet-mapping>
331 <servlet-name>graph</servlet-name>
332 <url-pattern>/graph</url-pattern>
333 </servlet-mapping>
334 -->
335
336
337<!--There is no need for this mapping, I think -->
338<servlet-mapping>
339 <servlet-name>oaiserver</servlet-name>
340 <url-pattern>/oaiserver</url-pattern>
341</servlet-mapping>
342
343 <servlet-mapping>
344 <servlet-name>nzdl-library</servlet-name>
345 <url-pattern>/nzdl</url-pattern>
346 </servlet-mapping>
347 <servlet-mapping>
348 <servlet-name>tester</servlet-name>
349 <url-pattern>/testing</url-pattern>
350 </servlet-mapping>
351
352 <servlet-mapping>
353 <servlet-name>dev</servlet-name>
354 <url-pattern>/dev</url-pattern>
355 </servlet-mapping>
356
357 <servlet-mapping>
358 <servlet-name>Format</servlet-name>
359 <url-pattern>/format</url-pattern>
360 </servlet-mapping>
361
362 <servlet-mapping>
363 <servlet-name>gs2-library</servlet-name>
364 <url-pattern>/library</url-pattern>
365 </servlet-mapping>
366
367 <servlet-mapping>
368 <servlet-name>gateway</servlet-name>
369 <url-pattern>/gateway</url-pattern>
370 </servlet-mapping>
371
372 <servlet-mapping>
373 <servlet-name>gs3-library</servlet-name>
374 <url-pattern>/gs3library</url-pattern>
375 </servlet-mapping>
376
377 <servlet-mapping>
378 <servlet-name>grabtext</servlet-name>
379 <url-pattern>/grabtext</url-pattern>
380 </servlet-mapping>
381
382 <!-- axis mappings -->
383 <servlet-mapping>
384 <servlet-name>AxisServlet</servlet-name>
385 <url-pattern>/servlet/AxisServlet</url-pattern>
386 </servlet-mapping>
387
388 <servlet-mapping>
389 <servlet-name>AxisServlet</servlet-name>
390 <url-pattern>*.jws</url-pattern>
391 </servlet-mapping>
392
393 <servlet-mapping>
394 <servlet-name>AxisServlet</servlet-name>
395 <url-pattern>/services/*</url-pattern>
396 </servlet-mapping>
397
398 <!-- uncomment this if you want to use the SOAPMonitorService. You will also
399 need to copy the SOAPMonitorApplet*.class files from
400 gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
401 comms/soap/axis/docs/install.html Appendix for details about how to use this -->
402 <!--
403 <servlet-mapping>
404 <servlet-name>SOAPMonitorService</servlet-name>
405 <url-pattern>/SOAPMonitor</url-pattern>
406 </servlet-mapping>
407 -->
408 <!-- uncomment this if you want the admin servlet -->
409 <!--
410 <servlet-mapping>
411 <servlet-name>AdminServlet</servlet-name>
412 <url-pattern>/servlet/AdminServlet</url-pattern>
413 </servlet-mapping>
414 -->
415
416 <!-- Define the default session timeout for your application,
417 in minutes. From a servlet or JSP page, you can modify
418 the timeout for a particular session dynamically by using
419 HttpSession.getMaxInactiveInterval(). -->
420
421 <session-config>
422 <session-timeout>30</session-timeout> <!-- 30 minutes -->
423 </session-config>
424
425 <!-- axis mime-mappings -->
426 <mime-mapping>
427 <extension>wsdl</extension>
428 <mime-type>text/xml</mime-type>
429 </mime-mapping>
430
431 <mime-mapping>
432 <extension>xsd</extension>
433 <mime-type>text/xml</mime-type>
434 </mime-mapping>
435
436</web-app>
437
438
Note: See TracBrowser for help on using the repository browser.