1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | <!DOCTYPE web-app |
---|
3 | PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" |
---|
4 | "http://java.sun.com/dtd/web-app_2_3.dtd"> |
---|
5 | <!-- |
---|
6 | $Id: web.xml 672 2005-05-29 21:15:33Z nicklas $ |
---|
7 | |
---|
8 | BioArray Software Environment (BASE) - http://base.thep.lu.se/ |
---|
9 | Copyright (C) 2002-2004 Lao Saal, Carl Troein, |
---|
10 | Johan Vallon-Christersson, Jari Häkkinen, Nicklas Nordborg |
---|
11 | |
---|
12 | This file is part of BASE. |
---|
13 | |
---|
14 | BASE is free software; you can redistribute it and/or |
---|
15 | modify it under the terms of the GNU General Public License |
---|
16 | as published by the Free Software Foundation; either version 2 |
---|
17 | of the License, or (at your option) any later version. |
---|
18 | |
---|
19 | BASE is distributed in the hope that it will be useful, |
---|
20 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
22 | GNU General Public License for more details. |
---|
23 | |
---|
24 | You should have received a copy of the GNU General Public License |
---|
25 | along with this program; if not, write to the Free Software |
---|
26 | Foundation, Inc., 59 Temple Place - Suite 330, |
---|
27 | Boston, MA 02111-1307, USA. |
---|
28 | --> |
---|
29 | |
---|
30 | <web-app> |
---|
31 | <display-name>BASE</display-name> |
---|
32 | <description> |
---|
33 | Welcome to BASE |
---|
34 | </description> |
---|
35 | <error-page> |
---|
36 | <exception-type>java.lang.Throwable</exception-type> |
---|
37 | <location>/exception/exception.jsp</location> |
---|
38 | </error-page> |
---|
39 | <servlet> |
---|
40 | <servlet-name>view</servlet-name> |
---|
41 | <servlet-class> |
---|
42 | net.sf.basedb.clients.web.servlet.Download |
---|
43 | </servlet-class> |
---|
44 | <init-param> |
---|
45 | <param-name>default_mime_type</param-name> |
---|
46 | <param-value>text/plain</param-value> |
---|
47 | </init-param> |
---|
48 | </servlet> |
---|
49 | |
---|
50 | <servlet> |
---|
51 | <servlet-name>download</servlet-name> |
---|
52 | <servlet-class> |
---|
53 | net.sf.basedb.clients.web.servlet.Download |
---|
54 | </servlet-class> |
---|
55 | <init-param> |
---|
56 | <param-name>default_mime_type</param-name> |
---|
57 | <param-value>text/plain</param-value> |
---|
58 | </init-param> |
---|
59 | <init-param> |
---|
60 | <param-name>download</param-name> |
---|
61 | <param-value>true</param-value> |
---|
62 | </init-param> |
---|
63 | </servlet> |
---|
64 | |
---|
65 | <servlet-mapping> |
---|
66 | <servlet-name>download</servlet-name> |
---|
67 | <url-pattern>/my_base/files/download/*</url-pattern> |
---|
68 | </servlet-mapping> |
---|
69 | <servlet-mapping> |
---|
70 | <servlet-name>view</servlet-name> |
---|
71 | <url-pattern>/my_base/files/view/*</url-pattern> |
---|
72 | </servlet-mapping> |
---|
73 | |
---|
74 | |
---|
75 | </web-app> |
---|