Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A question about security  RSS feed

 
avseq anthoy
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I work in Tomcat 5.016,jdk1.42_08 and Windows XP environmet.

My web application config in Tomcat's server.xml below:


My security config in web.xml below:

But it doesn't ask my username and password when I type http://localhost:8080/myjsp/show/show1.html in browser.
Can somebody solve this problem for me?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try adding the following at the very end of the web.xml file:

<security-role>
<role-name>manager</role-name>
</security-role>
<security-role>
<role-name>admin</role-name>
</security-role>
 
avseq anthoy
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hava add code below

But it still doesn't ask my passowrd and username.is there something that I didn't add in web.xml?
[ July 29, 2005: Message edited by: avseq anthoy ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!