A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
<security-constraint> in web.xml
Joined: Nov 25, 2003
Dec 09, 2009 23:07:03
I have given the following configuration in web.xml
<security-constraint> <web-resource-collection> <web-resource-name>SecureJSP</web-resource-name> <description>Project all JSP pages</description> <url-pattern>/jsp/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name></role-name> </auth-constraint> </security-constraint>
Now, if I want to access a jsp using the url /jsp/common/login.jsp, it gives me an authentication box which is a correct behaviour. Please correct me, if I am wrong.
If I want to access the jsp what credentails should be used in the authentication box for accessing the jsp.
Joined: Dec 08, 2009
Dec 09, 2009 23:09:50
It is sorta covered in the
JavaRanch Style Guide
subject: <security-constraint> in web.xml
Unable to get authentication and authorization working.
Login Session Time out
Question on multiple security-constraint elements
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013