A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
<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
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
I agree. Here's the link:
subject: <security-constraint> in web.xml
Question on multiple security-constraint elements
Login Session Time out
Unable to get authentication and authorization working.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015