Listing 1
<web-app>
<security-constraint>
<web-resource-collection>
<web-resource-name>
Order Pages
</web-resource-name>
<url-pattern>/billinginfo.jsp</url-pattern>
<url-pattern>/orderstatus.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>
CONFIDENTIAL
</transport-guarantee>
</user-data-constraint>
</security-constraint>
</web-app>
Listing 2
<web-app>
<security-constraint>
<web-resource-collection>
<web-resource-name>
Customer Pages
</web-resource-name>
<url-pattern>/billinginfo.jsp</url-pattern>
<url-pattern>/orderstatus.jsp</url-pattern>
<url-pattern>/shoppingcart.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>Customer</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-loginpage>
<form-errorpage>/
login.jsp?errormsg=Login error. Please
try again.</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>Customer</role-name>
</security-role>
</web-app>