HomeDigital EditionSys-Con RadioSearch Java Cd
Advanced Java AWT Book Reviews/Excerpts Client Server Corba Editorials Embedded Java Enterprise Java IDE's Industry Watch Integration Interviews Java Applet Java & Databases Java & Web Services Java Fundamentals Java Native Interface Java Servlets Java Beans J2ME Libraries .NET Object Orientation Observations/IMHO Product Reviews Scalability & Performance Security Server Side Source Code Straight Talking Swing Threads Using Java with others Wireless XML
 

"Java Servlets: Advanced Features"
Volume: 5 Issue: 2, p.96

	

Listing 1: 

<security-constraint> 
   <!-- Define a collection of resources --> 
   <web-resource-collection> 
   <web-resource-name>My Web Application</web-resource-name> 
   <url-pattern>/</url-pattern> 
   <http-method>POST</http-method> 
   <http-method>GET</http-method> 
</web-resource-collection> 

   <!-- Define authentication requirements --> 
<auth-constraint> 
   <role-name>manager</role-name> 
</auth-constraint> 

   <!-- Specify how user-container communication should be handled --> 
<user-data-constraint> 
   <transport-guarantee>NONE</transport-guarantee> 
</user-data-constraint> 
</security-constraint> 

<!-- Specify how authentication should be done --> 
<login-config> 
   <auth-method>FORM</auth-method> 
   <form-login-config> 
      <form-login-page>/login.html</form-login-page> 
      <form-error-page>/error.html</form-error-page> 
   </form-login-config> 
</login-config> 



 

All Rights Reserved
Copyright ©  2004 SYS-CON Media, Inc.
  E-mail: [email protected]

Java and Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. SYS-CON Publications, Inc. is independent of Sun Microsystems, Inc.