File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes <security-constraint> in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "<security-constraint> in web.xml" Watch "<security-constraint> in web.xml" New topic

<security-constraint> in web.xml

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315

I have given the following configuration in web.xml

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.

Chinna Eranna
Ranch Hand

Joined: Dec 08, 2009
Posts: 174

- Chinna
I agree. Here's the link:
subject: <security-constraint> in web.xml
It's not a secret anymore!