web-resource-collection

Java Servlet Programming, 2nd Edition > C. Deployment Descriptor DTD Reference > <web-resource-collection>

 
< BACKCONTINUE >
<web-resource-collection>

Synopsis

<!ELEMENT web-resource-collection (web-resource-name, description?,                                    url-pattern*, http-method*)>

Description

The <web-resource-collection> element is used to identify a subset of the resources and HTTP methods on those resources within a web application to which a security constraint applies. If no HTTP methods are specified, the security constraint applies to all HTTP methods.

<security-constraint>     <web-resource-collection>         <web-resource-name>SecretProtection</web-resource-name>         <url-pattern>/servlet/SalaryServer</url-pattern>         <url-pattern>/servlet/secret</url-pattern>         <http-method>GET</http-method>         <http-method>POST</http-method>     </web-resource-collection> </security-constraint>


Last updated on 3/20/2003
Java Servlet Programming, 2nd Edition, © 2001 O'Reilly

< BACKCONTINUE >


Java servlet programming
Java Servlet Programming (Java Series)
ISBN: 0596000405
EAN: 2147483647
Year: 2000
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net