source: main/adopters/ut/branches/1.8/src/main/webapps/secure-view/WEB-INF/web.xml @ 3610

Last change on this file since 3610 was 3610, checked in by Garth Braithwaite, 10 years ago

ut secure view webapp - made changes to the right app this time.

File size: 12.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?> 
2
3<web-app 
4        version="2.5"
5        xmlns="http://java.sun.com/xml/ns/j2ee" 
6        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
7    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
8>
9
10        <icon>
11                <small-icon>image/ibisph-view_16x16.ico</small-icon>
12                <large-icon>image/ibisph-view.ico</large-icon>
13        </icon>
14        <display-name>IBIS-PH - Public View</display-name>
15        <description>
16                Indicator Based Information System for Public Health (IBIS-PH).  This
17                system provides internet access for the public to view health indicator
18                data and to create and execute custom data queries.  The data presented
19                are stored in XML files with the HTML view being created by XSLTs and
20                controlled via Java controllers built on the Spring framework.
21        </description>
22
23
24        <context-param>
25                <param-name>contextConfigLocation</param-name>
26                <param-value>
27                        /WEB-INF/config/spring/filter.xml
28                        /WEB-INF/config/spring/security.xml
29                        /WEB-INF/config/spring/common.xml
30                        /WEB-INF/config/spring/chart.xml
31
32                        /WEB-INF/config/spring/home.xml
33                        /WEB-INF/config/spring/query.xml
34                        /WEB-INF/config/spring/secure.xml
35                </param-value>
36                <description>
37                        List of bean configuration files which will be loaded by the Spring
38                        Bean Factory.  Another way - specifies the bean definition/configuration
39                        files for this web app context for Spring MVC Framework's Dispatcher
40                        Servlet.  These bean config files can also contain bean definitions
41                        which because are instantiated at startup enable an app load mechanism.
42                        See the context listener defined below which uses this param.
43                </description>
44        </context-param>
45
46
47        <context-param>
48                <description>
49                        Needed to remove conflict for when two apps are on the same app server
50                        using spring and log4j (ibisph-view and ibisph-admin) see:
51                        http://drglennn.blogspot.com/2008/08/problems-with-webapproot-system.html
52                </description>
53                <param-name>webAppRootKey</param-name>
54                <param-value>ibisph-view</param-value>
55        </context-param>
56
57
58        <filter>
59                <filter-name>StandardFilters</filter-name>
60                <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
61                <init-param>
62                        <param-name>targetBeanName</param-name>
63                        <param-value>Filter.FilterChainProxy</param-value>
64                </init-param> 
65        </filter>
66        <filter>
67                <filter-name>SecurityFilters</filter-name>
68                <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
69                <init-param>
70                        <param-name>targetBeanName</param-name>
71                        <param-value>Security.FilterChainProxy</param-value>
72                </init-param> 
73        </filter>
74
75
76
77        <!-- ========================================= F I L T E R   M A P P I N G S -->
78        <filter-mapping>
79                <filter-name>SecurityFilters</filter-name>
80                <url-pattern>/secure/*</url-pattern>
81        </filter-mapping>
82        <filter-mapping>
83                <filter-name>SecurityFilters</filter-name>
84                <url-pattern>/authenticate</url-pattern>
85        </filter-mapping>
86
87        <filter-mapping>
88                <filter-name>StandardFilters</filter-name>
89                <url-pattern>/home/*</url-pattern>
90        </filter-mapping>
91        <filter-mapping>
92                <filter-name>StandardFilters</filter-name>
93                <url-pattern>/query/*</url-pattern>
94        </filter-mapping>
95
96
97        <!-- ===================================================== L I S T E N E R S -->
98        <listener>
99                <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
100        </listener>
101
102
103        <!-- ======================================================= S E R V L E T S -->
104        <servlet>
105                <servlet-name>Dispatcher.Servlet</servlet-name>
106                <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
107                <init-param>
108                        <param-name>contextConfigLocation</param-name>
109                        <param-value>/WEB-INF/config/spring/dispatcher_servlet.xml</param-value>
110                </init-param>
111                <load-on-startup>10</load-on-startup>
112        </servlet>
113
114
115        <!-- ======================================= S E R V L E T   M A P P I N G S
116                NOTE: need to map each system and NOT have a general /* mapping because
117                the servlet will then receive requests for image files, js, css etc...
118        -->
119        <servlet-mapping>
120                <servlet-name>Dispatcher.Servlet</servlet-name>
121                <url-pattern>/home/*</url-pattern>
122        </servlet-mapping>
123        <servlet-mapping>
124                <servlet-name>Dispatcher.Servlet</servlet-name>
125                <url-pattern>/query/*</url-pattern>
126        </servlet-mapping>
127        <servlet-mapping>
128                <servlet-name>Dispatcher.Servlet</servlet-name>
129                <url-pattern>/secure/*</url-pattern>
130        </servlet-mapping>
131
132        <servlet-mapping>
133                <servlet-name>Dispatcher.Servlet</servlet-name> 
134                <url-pattern>/query/selection/*</url-pattern> 
135        </servlet-mapping>
136        <servlet-mapping>
137                <servlet-name>Dispatcher.Servlet</servlet-name> 
138                <url-pattern>/query/configuration/*</url-pattern> 
139        </servlet-mapping>
140        <servlet-mapping>
141                <servlet-name>Dispatcher.Servlet</servlet-name> 
142                <url-pattern>/query/sasResult/*</url-pattern> 
143        </servlet-mapping>
144        <servlet-mapping>
145                <servlet-name>Dispatcher.Servlet</servlet-name> 
146                <url-pattern>/query/builder/*</url-pattern> 
147        </servlet-mapping>
148        <servlet-mapping>
149                <servlet-name>Dispatcher.Servlet</servlet-name> 
150                <url-pattern>/query/result/*</url-pattern> 
151        </servlet-mapping>
152        <servlet-mapping>
153                <servlet-name>Dispatcher.Servlet</servlet-name> 
154                <url-pattern>/query/result/graphic/*</url-pattern> 
155        </servlet-mapping>
156
157        <servlet-mapping>
158                <servlet-name>Dispatcher.Servlet</servlet-name> 
159                <url-pattern>/secure/query/selection/*</url-pattern> 
160        </servlet-mapping>
161        <servlet-mapping>
162                <servlet-name>Dispatcher.Servlet</servlet-name> 
163                <url-pattern>/secure/query/builder/*</url-pattern> 
164        </servlet-mapping>
165        <servlet-mapping>
166                <servlet-name>Dispatcher.Servlet</servlet-name> 
167                <url-pattern>/secure/query/result/*</url-pattern> 
168        </servlet-mapping>
169
170        <servlet-mapping>
171                <servlet-name>Dispatcher.Servlet</servlet-name> 
172                <url-pattern>/Welcome</url-pattern> 
173        </servlet-mapping>
174
175
176        <!-- =================================================== J S P   C O N F I G -->
177        <jsp-config>
178                <jsp-property-group>
179                        <description>Property group for common configuration for all the JSP's</description>
180                        <url-pattern>*.jsp</url-pattern>
181                        <scripting-invalid>false</scripting-invalid>
182                        <el-ignored>false</el-ignored>
183                        <page-encoding>ISO-8859-1</page-encoding>
184                        <trim-directive-whitespaces>true</trim-directive-whitespaces>
185                </jsp-property-group>
186        </jsp-config>
187
188
189        <!-- =========================================== S E S S I O N   C O N F I G -->
190        <session-config>
191                <!-- Inactive timeout value for a user's session.  Value is in minutes. -->
192                <session-timeout>30</session-timeout>
193        </session-config>
194
195
196        <!-- ============================================= M I M E   M A P P I N G S -->
197        <mime-mapping>
198                <extension>htm</extension>
199                <mime-type>text/html</mime-type>
200        </mime-mapping>
201        <mime-mapping>
202                <extension>html</extension>
203                <mime-type>text/html</mime-type>
204        </mime-mapping>
205        <mime-mapping>
206                <extension>xml</extension>
207                <mime-type>application/xml</mime-type>
208        </mime-mapping>
209        <mime-mapping>
210                <extension>css</extension>
211                <mime-type>text/css</mime-type>
212        </mime-mapping>
213        <mime-mapping>
214                <extension>ico</extension>
215                <mime-type>image/vnd.microsoft.icon</mime-type>
216        </mime-mapping>
217        <mime-mapping>
218                <extension>js</extension>
219                <mime-type>text/javascript</mime-type>
220        </mime-mapping>
221        <mime-mapping>
222                <extension>jsp</extension>
223                <mime-type>text/html</mime-type>
224        </mime-mapping>
225        <mime-mapping>
226                <extension>log</extension>
227                <mime-type>text/plain</mime-type>
228        </mime-mapping>
229        <mime-mapping>
230                <extension>gif</extension>
231                <mime-type>image/gif</mime-type>
232        </mime-mapping>
233        <mime-mapping>
234                <extension>jpg</extension>
235                <mime-type>image/jpeg</mime-type>
236        </mime-mapping>
237        <mime-mapping>
238                <extension>jpeg</extension>
239                <mime-type>image/jpeg</mime-type>
240        </mime-mapping>
241        <mime-mapping>
242                <extension>png</extension>
243                <mime-type>image/png</mime-type>
244        </mime-mapping>
245        <mime-mapping>
246                <extension>tiff</extension>
247                <mime-type>image/tiff</mime-type>
248        </mime-mapping>
249        <mime-mapping>
250                <extension>tif</extension>
251                <mime-type>image/tiff</mime-type>
252        </mime-mapping>
253        <mime-mapping>
254                <extension>svg</extension>
255                <mime-type>image/svg+xml</mime-type>
256        </mime-mapping>
257        <mime-mapping>
258                <extension>svgz</extension>
259                <mime-type>image/svg+xml</mime-type>
260        </mime-mapping>
261
262        <mime-mapping>
263                <extension>pdf</extension>
264                <mime-type>image/pdf</mime-type>
265        </mime-mapping>
266
267        <mime-mapping>
268                <extension>xls</extension>
269                <mime-type>application/vnd.ms-excel</mime-type>
270        </mime-mapping>
271
272
273
274        <!-- =============================== D E F A U L T / W E L C O M E   P A G E
275                NOTE: This has to be a physical file for anything prior to Servlet API 2.4.
276                If 2.4+ you can map the servlet then use the servlet name in the welcome
277                list.
278        -->
279        <welcome-file-list>
280                <welcome-file>Welcome</welcome-file>
281        </welcome-file-list>
282
283
284
285        <!-- ======================================= H T T P   E R R O R   P A G E S -->
286        <error-page><error-code>401</error-code><location>/jsp/ErrorPage.jsp?message=You are not authorized to view the requested resource.</location></error-page>
287        <error-page><error-code>403</error-code><location>/jsp/ErrorPage.jsp?message=You are trying to view a restricted resource.  The request was understood by the server but a response was refused.</location></error-page>
288        <error-page><error-code>404</error-code><location>/jsp/ErrorPage.jsp?message=Requested resource was not found.  It has either moved or is unavailable.</location></error-page>
289        <error-page><error-code>405</error-code><location>/jsp/ErrorPage.jsp?message=The page tried to use a method which is not supported for this URL.</location></error-page>
290        <error-page><error-code>406</error-code><location>/jsp/ErrorPage.jsp?message=The requested resource exists, but not in a format/type that your browser will accept.</location></error-page>
291        <error-page><error-code>407</error-code><location>/jsp/ErrorPage.jsp?message=The proxy server needs authorization before it can proceed.</location></error-page>
292        <error-page><error-code>408</error-code><location>/jsp/ErrorPage.jsp?message=Request timed out.  The resource is in use or is temporarily unavailable or there is a network problem.</location></error-page>
293        <error-page><error-code>414</error-code><location>/jsp/ErrorPage.jsp?message=The requested URI (URL) is too long for the server to handle.</location></error-page>
294        <error-page><error-code>415</error-code><location>/jsp/ErrorPage.jsp?message=The server can not process the request because the request body is in an unsupported media format.</location></error-page>
295
296        <error-page><error-code>500</error-code><location>/jsp/ErrorPage.jsp?message=An unexpected error occurred inside the server that prevented it from fulfilling the request.</location></error-page>
297        <error-page><error-code>501</error-code><location>/jsp/ErrorPage.jsp?message=Requested function is not implemented by this application on this server.</location></error-page>
298        <error-page><error-code>502</error-code><location>/jsp/ErrorPage.jsp?message=Bad internet gateway.  A server acting as a gateway or proxy did not receive a valid response from an upstream server.</location></error-page>
299        <error-page><error-code>503</error-code><location>/jsp/ErrorPage.jsp?message=The service (server) is temporarily unavailable but should be restored in the future.</location></error-page>
300        <error-page><error-code>504</error-code><location>/jsp/ErrorPage.jsp?message=A gateway timout error has occured.  A server acting as a gateway or proxy did not receive a valid response in time.</location></error-page>
301        <error-page><error-code>505</error-code><location>/jsp/ErrorPage.jsp?message=The server does not support the version of the HTTP protocol used in the request.</location></error-page>
302
303        <error-page><exception-type>java.lang.Throwable</exception-type><location>/jsp/ErrorPage.jsp?message=Uncaught System Run Time Exception</location></error-page>
304<!-- must have either the exception-type or error-code
305        <error-page><location>/jsp/ErrorPage.jsp?message=General system problem.  This is not a problem with the network or an HTTP issue.  This is typically a problem with the IBIS application.</location></error-page>
306-->
307</web-app>
Note: See TracBrowser for help on using the repository browser.