You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2002/10/07 20:09:58 UTC
cvs commit: jakarta-servletapi-5/jsr152/examples/WEB-INF web.xml
jfarcand 2002/10/07 11:09:58
Modified: jsr152/examples/WEB-INF web.xml
Log:
Make the file compatible with Servlet 2.4 XML schema. Now examples will works when parsing is set to true.
Revision Changes Path
1.3 +10 -11 jakarta-servletapi-5/jsr152/examples/WEB-INF/web.xml
Index: web.xml
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/WEB-INF/web.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- web.xml 7 Sep 2002 00:47:58 -0000 1.2
+++ web.xml 7 Oct 2002 18:09:58 -0000 1.3
@@ -209,14 +209,8 @@
<include-coda>/jsp2/misc/coda.jspf</include-coda>
</jsp-property-group>
</jsp-config>
-
- <resource-ref>
- <res-ref-name>mail/Session</res-ref-name>
- <res-type>javax.mail.Session</res-type>
- <res-auth>Container</res-auth>
- </resource-ref>
-
- <security-constraint>
+
+ <security-constraint>
<display-name>Example Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
@@ -244,14 +238,14 @@
<form-error-page>/security/protected/error.jsp</form-error-page>
</form-login-config>
</login-config>
-
+
<!-- Security roles referenced by this web application -->
<security-role>
<role-name>role1</role-name>
</security-role>
<security-role>
<role-name>tomcat</role-name>
- </security-role>
+ </security-role>
<!-- Environment entry examples -->
<!--env-entry>
@@ -287,7 +281,7 @@
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>10</env-entry-value>
</env-entry>
-
+
<!-- EJB Reference -->
<ejb-ref>
<description>Example EJB Reference</description>
@@ -306,5 +300,10 @@
<local>com.mycompany.mypackage.ProcessOrder</local>
</ejb-local-ref>
+ <resource-ref>
+ <res-ref-name>mail/Session</res-ref-name>
+ <res-type>javax.mail.Session</res-type>
+ <res-auth>Container</res-auth>
+ </resource-ref>
</web-app>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>