source: trunk/www/WEB-INF/web.xml @ 848

Last change on this file since 848 was 848, checked in by Nicklas Nordborg, 18 years ago

Added the possibility to use unicode in the database and web client

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
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 848 2005-06-30 09:15:42Z 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&auml;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    The BASE 2 web application.
34  </description>
35 
36  <error-page>
37    <exception-type>java.lang.Throwable</exception-type>
38    <location>/exception/exception.jsp</location>
39  </error-page>
40 
41  <!-- The View servlet used to download files in view mode -->
42  <servlet>
43    <servlet-name>view</servlet-name>
44    <servlet-class>
45      net.sf.basedb.clients.web.servlet.Download
46    </servlet-class>
47    <init-param>
48      <param-name>default_mime_type</param-name>
49      <param-value>text/plain</param-value>
50    </init-param>
51  </servlet>
52
53  <!-- The Download servlet used to download files in download mode -->
54  <servlet>
55    <servlet-name>download</servlet-name>
56    <servlet-class>
57      net.sf.basedb.clients.web.servlet.Download
58    </servlet-class>
59    <init-param>
60      <param-name>default_mime_type</param-name>
61      <param-value>text/plain</param-value>
62    </init-param>
63    <init-param>
64      <param-name>download</param-name>
65      <param-value>true</param-value>
66    </init-param>
67  </servlet>
68
69  <servlet-mapping>
70    <servlet-name>download</servlet-name>
71    <url-pattern>/my_base/files/download/*</url-pattern>
72  </servlet-mapping>
73  <servlet-mapping>
74    <servlet-name>view</servlet-name>
75    <url-pattern>/my_base/files/view/*</url-pattern>
76  </servlet-mapping>
77 
78  <!-- A filter that sets the character encoding on all *.jsp files -->
79  <filter>
80    <filter-name>characterEncoding</filter-name>
81    <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class>
82    <init-param>
83      <param-name>characterEncoding</param-name>
84      <param-value>ISO-8859-1</param-value>
85      <!--
86      <param-value>UTF-8</param-value>
87      -->
88    </init-param>
89  </filter>
90 
91  <filter-mapping>
92    <filter-name>characterEncoding</filter-name>
93    <url-pattern>*.jsp</url-pattern>
94  </filter-mapping>
95
96</web-app>
Note: See TracBrowser for help on using the repository browser.