1 <?xml version="1.0" encoding="ISO-8859-1"?>
4 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
5 "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
17 <param-name>Config</param-name>
18 <param-value>config</param-value>
44 <param-name>Config</param-name>
45 <param-value>config</param-value>
51 <servlet-name>OpenMir</servlet-name>
52 <url-pattern>OpenMir</url-pattern>
58 http://java.apache.org/tomcat/examples-taglib
61 /WEB-INF/jsp/example-taglib.tld
66 <web-resource-collection>
67 <web-resource-name>Protected Area</web-resource-name>
68 <!-- Define the context-relative URL(s) to be protected -->
69 <url-pattern>/jsp/security/protected/*</url-pattern>
70 <!-- If you list http methods, only those methods are protected -->
71 <http-method>DELETE</http-method>
72 <http-method>GET</http-method>
73 <http-method>POST</http-method>
74 <http-method>PUT</http-method>
75 </web-resource-collection>
77 <!-- Anyone with one of the listed roles may access this area -->
78 <role-name>tomcat</role-name>
79 <role-name>role1</role-name>
81 </security-constraint>
83 <!-- Default login configuration uses BASIC authentication -->
86 <auth-method>BASIC</auth-method>
87 <realm-name>Example Basic Authentication Area</realm-name>
91 <!-- Form-based login is enabled by default. If you wish to
92 try Basic authentication, comment out the <login-config>
93 section below and uncomment the one above. -->
95 <auth-method>FORM</auth-method>
96 <realm-name>Example Form-Based Authentication Area</realm-name>
98 <form-login-page>/jsp/security/login/login.jsp</form-login-page>
99 <form-error-page>/jsp/security/login/error.jsp</form-error-page>