Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security Issue

 
Raef Kandeel
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey ranchers,

I added the following :-



in two locations:

- in the web.xml in my web-app
- in the tomcat5.0/conf/web.xml

I was expecting the container to prompt me for the username and the password. Given that the container didn't prompt me for the username and the password, was I wrong to expect this?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
login-config by itself is not enough; you also need a security-constraint element. See http://faq.javaranch.com/java/ServletsFaq#security for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic