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

Last change on this file since 23777 was 22676, checked in by sjb48, 14 years ago

Working on auto-resizing tables and column insertion. Partially working.

  • Property svn:keywords set to Author Date Id Revision
File size: 13.1 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
80 <servlet>
81 <servlet-name>dev</servlet-name>
82 <description>A new skin engine still in development based on the standard gsdl3 library program</description>
83 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
84 <init-param>
85 <param-name>library_name</param-name>
86 <param-value>dev</param-value>
87 </init-param>
88 <init-param>
89 <param-name>site_name</param-name>
90 <param-value>localsite</param-value>
91 </init-param>
92 <init-param>
93 <param-name>interface_name</param-name>
94 <param-value>oran</param-value>
95 </init-param>
96 <init-param>
97 <param-name>receptionist_class</param-name>
98 <param-value>DefaultReceptionist</param-value>
99 </init-param>
100 <init-param>
101 <param-name>default_lang</param-name>
102 <param-value>en</param-value>
103 </init-param>
104 </servlet>
105
106 <servlet>^M
107 <servlet-name>Format</servlet-name>^M
108 <description>A new skin engine still in development based on the standard gsdl3 library program</description>^M
109 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>^M
110 <init-param>^M
111 <param-name>library_name</param-name>^M
112 <param-value>format</param-value>^M
113 </init-param>^M
114 <init-param>^M
115 <param-name>site_name</param-name>^M
116 <param-value>localsite</param-value>^M
117 </init-param>^M
118 <init-param>^M
119 <param-name>interface_name</param-name>^M
120 <param-value>oran</param-value>^M
121 </init-param>^M
122 <init-param>^M
123 <param-name>receptionist_class</param-name>^M
124 <param-value>FormatReceptionist</param-value>^M
125 </init-param>^M
126 <init-param>^M
127 <param-name>default_lang</param-name>^M
128 <param-value>en</param-value>^M
129 </init-param>^M
130 </servlet>^M
131
132
133 <servlet>
134 <servlet-name>gs2-library</servlet-name>
135 <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description>
136 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
137 <init-param>
138 <param-name>library_name</param-name>
139 <param-value>library</param-value>
140 </init-param>
141 <init-param>
142 <param-name>site_name</param-name>
143 <param-value>localsite</param-value>
144 </init-param>
145 <init-param>
146 <param-name>interface_name</param-name>
147 <param-value>gs2</param-value>
148 </init-param>
149 <init-param>
150 <param-name>default_lang</param-name>
151 <param-value>en</param-value>
152 </init-param>
153 <init-param>
154 <param-name>session_expiration</param-name>
155 <param-value>1800</param-value>
156 </init-param>
157 <init-param>
158 <param-name>params_class</param-name>
159 <param-value>GS2Params</param-value>
160 </init-param>
161 </servlet>
162
163 <servlet>
164 <servlet-name>nzdl-library</servlet-name>
165 <description>gsdl3 library program</description>
166 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
167 <init-param>
168 <param-name>library_name</param-name>
169 <param-value>nzdl</param-value>
170 </init-param>
171 <init-param>
172 <param-name>site_name</param-name>
173 <param-value>nzdl</param-value>
174 </init-param>
175 <init-param>
176 <param-name>interface_name</param-name>
177 <param-value>nzdl</param-value>
178 </init-param>
179 <init-param>
180 <param-name>default_lang</param-name>
181 <param-value>en</param-value>
182 </init-param>
183 <init-param>
184 <param-name>params_class</param-name>
185 <param-value>NZDLParams</param-value>
186 </init-param>
187 <init-param>
188 <param-name>session_expiration</param-name>
189 <param-value>600</param-value>
190 </init-param>
191 </servlet>
192
193 <servlet>
194 <servlet-name>gateway</servlet-name>
195 <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
196 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
197 <init-param>
198 <param-name>library_name</param-name>
199 <param-value>gateway</param-value>
200 </init-param>
201 <init-param>
202 <param-name>site_name</param-name>
203 <param-value>gateway</param-value>
204 </init-param>
205 <init-param>
206 <param-name>interface_name</param-name>
207 <param-value>default</param-value>
208 </init-param>
209 <init-param>
210 <param-name>default_lang</param-name>
211 <param-value>en</param-value>
212 </init-param>
213 </servlet>
214
215 <servlet>
216 <servlet-name>gs3-library</servlet-name>
217 <description>standard gsdl3 library program: uses localsite and the default interface</description>
218 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
219 <init-param>
220 <param-name>library_name</param-name>
221 <param-value>gs3library</param-value>
222 </init-param>
223 <init-param>
224 <param-name>site_name</param-name>
225 <param-value>localsite</param-value>
226 </init-param>
227 <init-param>
228 <param-name>interface_name</param-name>
229 <param-value>default</param-value>
230 </init-param>
231 <init-param>
232 <param-name>default_lang</param-name>
233 <param-value>en</param-value>
234 </init-param>
235 </servlet>
236
237 <!-- axis servlets -->
238 <servlet>
239 <servlet-name>AxisServlet</servlet-name>
240 <display-name>Apache-Axis Servlet</display-name>
241 <servlet-class>
242 org.apache.axis.transport.http.AxisServlet
243 </servlet-class>
244 </servlet>
245
246 <servlet>
247 <servlet-name>AdminServlet</servlet-name>
248 <display-name>Axis Admin Servlet</display-name>
249 <servlet-class>
250 org.apache.axis.transport.http.AdminServlet
251 </servlet-class>
252 <load-on-startup>100</load-on-startup>
253 </servlet>
254
255 <servlet>
256 <servlet-name>SOAPMonitorService</servlet-name>
257 <display-name>SOAPMonitorService</display-name>
258 <servlet-class>
259 org.apache.axis.monitor.SOAPMonitorService
260 </servlet-class>
261 <init-param>
262 <param-name>SOAPMonitorPort</param-name>
263 <param-value>5001</param-value>
264 </init-param>
265 <load-on-startup>100</load-on-startup>
266 </servlet>
267<servlet>
268 <servlet-name>oaiserver</servlet-name>
269 <description>an oai servlet</description>
270 <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
271 <init-param>
272 <param-name>default_lang</param-name>
273 <param-value>en</param-value>
274 </init-param>
275 <init-param>
276 <param-name>site_name</param-name>
277 <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
278 <param-value>localsite</param-value>
279 </init-param>
280</servlet>
281
282<!--
283<filter>
284 <filter-name>UrlRewriteFilter</filter-name>
285 <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
286</filter>
287
288<filter-mapping>
289 <filter-name>UrlRewriteFilter</filter-name>
290 <url-pattern>/*</url-pattern>
291</filter-mapping>
292-->
293
294 <!-- Define mappings that are used by the servlet container to
295 translate a particular request URI (context-relative) to a
296 particular servlet. The examples below correspond to the
297 servlet descriptions above. Thus, a request URI like:
298
299 http://localhost:8080/{contextpath}/graph
300
301 will be mapped to the "graph" servlet, while a request like:
302
303 http://localhost:8080/{contextpath}/saveCustomer.do
304
305 will be mapped to the "controller" servlet.
306
307 Note: context path is determined by the servlet container -
308 in Tomcat, specified in server.xml -kjdon
309 You may define any number of servlet mappings, including zero.
310 It is also legal to define more than one mapping for the same
311 servlet, if you wish to.
312 -->
313 <!--
314
315 <servlet-mapping>
316 <servlet-name>controller</servlet-name>
317 <url-pattern>*.do</url-pattern>
318 </servlet-mapping>
319
320 <servlet-mapping>
321 <servlet-name>graph</servlet-name>
322 <url-pattern>/graph</url-pattern>
323 </servlet-mapping>
324 -->
325
326
327<!--There is no need for this mapping, I think -->
328<servlet-mapping>
329 <servlet-name>oaiserver</servlet-name>
330 <url-pattern>/oaiserver</url-pattern>
331</servlet-mapping>
332
333 <servlet-mapping>
334 <servlet-name>nzdl-library</servlet-name>
335 <url-pattern>/nzdl</url-pattern>
336 </servlet-mapping>
337 <servlet-mapping>
338 <servlet-name>tester</servlet-name>
339 <url-pattern>/testing</url-pattern>
340 </servlet-mapping>
341
342 <servlet-mapping>
343 <servlet-name>dev</servlet-name>
344 <url-pattern>/dev</url-pattern>
345 </servlet-mapping>
346
347 <servlet-mapping>^M
348 <servlet-name>Format</servlet-name>^M
349 <url-pattern>/format</url-pattern>^M
350 </servlet-mapping>^M
351
352 <servlet-mapping>
353 <servlet-name>gs2-library</servlet-name>
354 <url-pattern>/library</url-pattern>
355 </servlet-mapping>
356
357 <servlet-mapping>
358 <servlet-name>gateway</servlet-name>
359 <url-pattern>/gateway</url-pattern>
360 </servlet-mapping>
361
362 <servlet-mapping>
363 <servlet-name>gs3-library</servlet-name>
364 <url-pattern>/gs3library</url-pattern>
365 </servlet-mapping>
366
367
368 <!-- axis mappings -->
369 <servlet-mapping>
370 <servlet-name>AxisServlet</servlet-name>
371 <url-pattern>/servlet/AxisServlet</url-pattern>
372 </servlet-mapping>
373
374 <servlet-mapping>
375 <servlet-name>AxisServlet</servlet-name>
376 <url-pattern>*.jws</url-pattern>
377 </servlet-mapping>
378
379 <servlet-mapping>
380 <servlet-name>AxisServlet</servlet-name>
381 <url-pattern>/services/*</url-pattern>
382 </servlet-mapping>
383
384 <!-- uncomment this if you want to use the SOAPMonitorService. You will also
385 need to copy the SOAPMonitorApplet*.class files from
386 gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
387 comms/soap/axis/docs/install.html Appendix for details about how to use this -->
388 <!--
389 <servlet-mapping>
390 <servlet-name>SOAPMonitorService</servlet-name>
391 <url-pattern>/SOAPMonitor</url-pattern>
392 </servlet-mapping>
393 -->
394 <!-- uncomment this if you want the admin servlet -->
395 <!--
396 <servlet-mapping>
397 <servlet-name>AdminServlet</servlet-name>
398 <url-pattern>/servlet/AdminServlet</url-pattern>
399 </servlet-mapping>
400 -->
401
402 <!-- Define the default session timeout for your application,
403 in minutes. From a servlet or JSP page, you can modify
404 the timeout for a particular session dynamically by using
405 HttpSession.getMaxInactiveInterval(). -->
406
407 <session-config>
408 <session-timeout>30</session-timeout> <!-- 30 minutes -->
409 </session-config>
410
411 <!-- axis mime-mappings -->
412 <mime-mapping>
413 <extension>wsdl</extension>
414 <mime-type>text/xml</mime-type>
415 </mime-mapping>
416
417 <mime-mapping>
418 <extension>xsd</extension>
419 <mime-type>text/xml</mime-type>
420 </mime-mapping>
421
422</web-app>
423
424
Note: See TracBrowser for help on using the repository browser.