I want to configuration a webapp. that runs under Tomcat with authentication via tomcat-user.xml file. But my problem is that the browser popup window where I can type the username and the password in, does not appear.
I am one of the moderators of the JavaRanch forums. Here on JavaRanch, we have a naming policy. We want the users of JavaRanch to use a real-sounding name as their display name.
Unfortunately, your name "Curry Wurst" does not comply to the naming policy. Your display name should consist of a real-sounding first name, space, and a second name. Not only a first name, no obviously fake nickname, no initials only for the second name.
Please read the naming policy carefully and change your display name. You can change your name by editing your profile.
Please note that we are taking the naming policy seriously. If you do not change your display name, your account on JavaRanch might be locked.
Sorry I didn't read the naming policy. I changed my name to BalHug I hope this is Ok. [ March 26, 2008: Message edited by: BalHug ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
Originally posted by BalHug: Sorry I didn't read the naming policy. I changed my name to BalHug I hope this is Ok.
Unfortunately it's not. To quote from Jesper's post:
Your display name should consist of a real-sounding first name, space, and a second name. Not only a first name, no obviously fake nickname, no initials only for the second name.
So it's missing a space, and "Bal Hug" doesn't sound real to me, either (although that could just be ignorance on my part).
thank you for your replay I still changed the web.xml to
I include your advice with the <url-pattern>/login/*</url-pattern> but nothing happens.
Here are some more information: I use tomcat 6.0.14 under Windows XP and Firefox and IE as browser.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
May we call you Egon?
If the name of your web app is "login" -and the URL you've posted suggests that it is-, then "login" should not be part of the URL patterns. Try "<url-pattern>/LogInServlet.do</url-pattern>" or, of course, "<url-pattern>/*</url-pattern>" if you want to protect everything.
Hugo Balder
Greenhorn
Joined: Dec 14, 2001
Posts: 9
posted
0
I'ill take the strawberry ;-)
Ok, I protect everything with "<url-pattern>/*</url-pattern>" but the popup didn't appear.