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 2959 2006-11-27 11:36:37Z nicklas $ |
---|
7 | |
---|
8 | Copyright (C) Authors contributing to this file. |
---|
9 | |
---|
10 | This file is part of BASE - BioArray Software Environment. |
---|
11 | Available at http://base.thep.lu.se/ |
---|
12 | |
---|
13 | BASE is free software; you can redistribute it and/or |
---|
14 | modify it under the terms of the GNU General Public License |
---|
15 | as published by the Free Software Foundation; either version 2 |
---|
16 | of the License, or (at your option) any later version. |
---|
17 | |
---|
18 | BASE is distributed in the hope that it will be useful, |
---|
19 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
21 | GNU General Public License for more details. |
---|
22 | |
---|
23 | You should have received a copy of the GNU General Public License |
---|
24 | along with this program; if not, write to the Free Software |
---|
25 | Foundation, Inc., 59 Temple Place - Suite 330, |
---|
26 | Boston, MA 02111-1307, USA. |
---|
27 | --> |
---|
28 | |
---|
29 | <web-app> |
---|
30 | <display-name>BASE</display-name> |
---|
31 | <description> |
---|
32 | The BASE 2 web application. |
---|
33 | </description> |
---|
34 | |
---|
35 | <error-page> |
---|
36 | <exception-type>java.lang.Throwable</exception-type> |
---|
37 | <location>/exception/exception.jsp</location> |
---|
38 | </error-page> |
---|
39 | |
---|
40 | <!-- The View servlet used to download files in view mode --> |
---|
41 | <servlet> |
---|
42 | <servlet-name>view</servlet-name> |
---|
43 | <servlet-class> |
---|
44 | net.sf.basedb.clients.web.servlet.Download |
---|
45 | </servlet-class> |
---|
46 | <init-param> |
---|
47 | <param-name>default_mime_type</param-name> |
---|
48 | <param-value>text/plain</param-value> |
---|
49 | </init-param> |
---|
50 | <init-param> |
---|
51 | <param-name>use_path_info</param-name> |
---|
52 | <param-value>false</param-value> |
---|
53 | </init-param> |
---|
54 | </servlet> |
---|
55 | <servlet-mapping> |
---|
56 | <servlet-name>view</servlet-name> |
---|
57 | <url-pattern>/filemanager/files/view/*</url-pattern> |
---|
58 | </servlet-mapping> |
---|
59 | |
---|
60 | <!-- The Download servlet used to download files in download mode --> |
---|
61 | <servlet> |
---|
62 | <servlet-name>download</servlet-name> |
---|
63 | <servlet-class> |
---|
64 | net.sf.basedb.clients.web.servlet.Download |
---|
65 | </servlet-class> |
---|
66 | <init-param> |
---|
67 | <param-name>default_mime_type</param-name> |
---|
68 | <param-value>text/plain</param-value> |
---|
69 | </init-param> |
---|
70 | <init-param> |
---|
71 | <param-name>download</param-name> |
---|
72 | <param-value>true</param-value> |
---|
73 | </init-param> |
---|
74 | <init-param> |
---|
75 | <param-name>use_path_info</param-name> |
---|
76 | <param-value>false</param-value> |
---|
77 | </init-param> |
---|
78 | </servlet> |
---|
79 | <servlet-mapping> |
---|
80 | <servlet-name>download</servlet-name> |
---|
81 | <url-pattern>/filemanager/files/download/*</url-pattern> |
---|
82 | </servlet-mapping> |
---|
83 | |
---|
84 | |
---|
85 | <!-- The SpotImage servlet used to view spot images in a raw bioassay --> |
---|
86 | <servlet> |
---|
87 | <servlet-name>spotimage</servlet-name> |
---|
88 | <servlet-class> |
---|
89 | net.sf.basedb.clients.web.servlet.ViewSpotImage |
---|
90 | </servlet-class> |
---|
91 | </servlet> |
---|
92 | <servlet-mapping> |
---|
93 | <servlet-name>spotimage</servlet-name> |
---|
94 | <url-pattern>/views/rawbioassays/rawdata/spotimage/*</url-pattern> |
---|
95 | </servlet-mapping> |
---|
96 | |
---|
97 | <!-- The Generic PlotServlet for the HTML plot tool --> |
---|
98 | <servlet> |
---|
99 | <servlet-name>plotter</servlet-name> |
---|
100 | <servlet-class> |
---|
101 | net.sf.basedb.clients.web.servlet.PlotServlet |
---|
102 | </servlet-class> |
---|
103 | <init-param> |
---|
104 | <param-name>maxWidth</param-name> |
---|
105 | <param-value>1000</param-value> |
---|
106 | </init-param> |
---|
107 | <init-param> |
---|
108 | <param-name>maxHeight</param-name> |
---|
109 | <param-value>800</param-value> |
---|
110 | </init-param> |
---|
111 | <init-param> |
---|
112 | <param-name>defaultWidth</param-name> |
---|
113 | <param-value>600</param-value> |
---|
114 | </init-param> |
---|
115 | <init-param> |
---|
116 | <param-name>defaultHeight</param-name> |
---|
117 | <param-value>400</param-value> |
---|
118 | </init-param> |
---|
119 | <init-param> |
---|
120 | <param-name>defaultFormat</param-name> |
---|
121 | <param-value>png</param-value> |
---|
122 | </init-param> |
---|
123 | </servlet> |
---|
124 | <servlet-mapping> |
---|
125 | <servlet-name>plotter</servlet-name> |
---|
126 | <url-pattern>/views/experiments/plotter/plot</url-pattern> |
---|
127 | </servlet-mapping> |
---|
128 | |
---|
129 | |
---|
130 | <!-- The CompileAll servlet used to compile all JSP pages --> |
---|
131 | <!-- EXPERIMENTAL!! --> |
---|
132 | <!-- |
---|
133 | <servlet> |
---|
134 | <servlet-name>compile</servlet-name> |
---|
135 | <servlet-class> |
---|
136 | net.sf.basedb.clients.web.servlet.CompileAll |
---|
137 | </servlet-class> |
---|
138 | </servlet> |
---|
139 | <servlet-mapping> |
---|
140 | <servlet-name>compile</servlet-name> |
---|
141 | <url-pattern>/compile</url-pattern> |
---|
142 | </servlet-mapping> |
---|
143 | --> |
---|
144 | |
---|
145 | <!-- A filter that sets the character encoding on all *.jsp files --> |
---|
146 | <filter> |
---|
147 | <filter-name>characterEncoding</filter-name> |
---|
148 | <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class> |
---|
149 | <init-param> |
---|
150 | <param-name>characterEncoding</param-name> |
---|
151 | <param-value>ISO-8859-1</param-value> |
---|
152 | <!-- |
---|
153 | <param-value>UTF-8</param-value> |
---|
154 | --> |
---|
155 | </init-param> |
---|
156 | </filter> |
---|
157 | |
---|
158 | <filter-mapping> |
---|
159 | <filter-name>characterEncoding</filter-name> |
---|
160 | <url-pattern>*.jsp</url-pattern> |
---|
161 | </filter-mapping> |
---|
162 | |
---|
163 | </web-app> |
---|