making sure OutputMir can find it's config
[mir.git] / etc / web.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2
3 <!DOCTYPE web-app
4     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
5     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
6
7 <web-app>
8     <servlet>
9         <servlet-name>
10             Mir
11         </servlet-name>
12         <servlet-class>
13             Mir
14         </servlet-class>
15
16         <init-param>
17             <param-name>Config</param-name>
18             <param-value>config</param-value>
19         </init-param>
20
21     </servlet>
22
23     <servlet>
24         <servlet-name>
25             OpenMir
26         </servlet-name>
27         <servlet-class>
28             OpenMir
29         </servlet-class>
30
31         <init-param>
32             <param-name>Config</param-name>
33             <param-value>config</param-value>
34         </init-param>
35
36     </servlet>
37     
38     <servlet>
39         <servlet-name>
40             OutputMir
41         </servlet-name>
42         <servlet-class>
43             OutputMir
44         </servlet-class>
45
46         <init-param>
47             <param-name>Config</param-name>
48             <param-value>config</param-value>
49         </init-param>
50
51     </servlet>
52
53     <servlet-mapping>
54         <servlet-name>
55             Mir
56         </servlet-name>
57         <url-pattern>
58             /Mir
59         </url-pattern>
60     </servlet-mapping>
61
62     <servlet-mapping>
63         <servlet-name>OpenMir</servlet-name>
64         <url-pattern>/OpenMir</url-pattern>
65     </servlet-mapping>
66
67     <servlet-mapping>
68         <servlet-name>OutputMir</servlet-name>
69         <url-pattern>/OutputMir</url-pattern>
70     </servlet-mapping>
71
72
73     <taglib>
74         <taglib-uri>
75            http://java.apache.org/tomcat/examples-taglib
76         </taglib-uri>
77         <taglib-location>
78            /WEB-INF/jsp/example-taglib.tld
79         </taglib-location>
80     </taglib>
81
82     <security-constraint>
83       <web-resource-collection>
84          <web-resource-name>Protected Area</web-resource-name>
85          <!-- Define the context-relative URL(s) to be protected -->
86          <url-pattern>/jsp/security/protected/*</url-pattern>
87          <!-- If you list http methods, only those methods are protected -->
88          <http-method>DELETE</http-method>
89          <http-method>GET</http-method>
90          <http-method>POST</http-method>
91          <http-method>PUT</http-method>
92       </web-resource-collection>
93       <auth-constraint>
94          <!-- Anyone with one of the listed roles may access this area -->
95          <role-name>tomcat</role-name>
96          <role-name>role1</role-name>
97       </auth-constraint>
98     </security-constraint>
99
100     <!-- Default login configuration uses BASIC authentication -->
101     <!--
102     <login-config>
103       <auth-method>BASIC</auth-method>
104       <realm-name>Example Basic Authentication Area</realm-name>
105     </login-config>
106     -->
107
108     <!-- Form-based login is enabled by default.  If you wish to
109          try Basic authentication, comment out the <login-config>
110          section below and uncomment the one above. -->
111     <login-config>
112       <auth-method>FORM</auth-method>
113       <realm-name>Example Form-Based Authentication Area</realm-name>
114       <form-login-config>
115         <form-login-page>/jsp/security/login/login.jsp</form-login-page>
116         <form-error-page>/jsp/security/login/error.jsp</form-error-page>
117       </form-login-config>
118     </login-config>
119
120 </web-app>