This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes User Authenticate problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "User Authenticate problem" Watch "User Authenticate problem" New topic

User Authenticate problem

zheng yu

Joined: Apr 25, 2001
Posts: 28
We built a server using Apche + Linux + tomcat3.2 .We use HTTP Basic Authentication technology within HTTP Protocol( that means using HTTP Realm Tag and sends pasword with base64 coding ) . In server side , if the user/password is not correct , we wrote some code showed as following in servlet's service()function
res.setHeader("WWW-Authenticate", "BASIC realm=\"Lib adminis
But what's really strange is that in client side , this code doesn't pop out some windows to allow user to input user name /password .the browser is redirect to Tomcat's JSP sample Security/login.jsp that come with Tomcat3.2.1
Is there some explanation for this ?Please tell me why and how to solve this problem ?
Thanx in advance
I agree. Here's the link:
subject: User Authenticate problem
It's not a secret anymore!