I got the popup window dispalyed by the browser by sending the
SC_UNAUTHORIZED message.
The problem is that when the user enters the login and password ?? I should
be checking the contents by which database??
Some one in the newsgroup said that there should be something to be done at
server side ??
It would be greatful , If you explain the mechanism to me

Nimesh
-----Original Message-----
From: Andreas Ulrich <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, March 31, 1999 2:56 AM
Subject: Re: getRemoteUser()


>Hi,
>
>I am not sure, but I think you have to do the following.
>The first time a client attempts to access your servlet, you have to
>reply with the status code 401 => setStatus(SC_UNAUTHORIZED). When
>the client receives this response, it opens a window asking username
>and password. After the user entered this information, the client
>again attempts to access your servlet. Now you will get the remote
>user information.
>
>I hope this helps.
>
>Andreas
>
>>
>> getRemoteUser() helps us get the login of the user.The logins are
maintained at the server side.
>>
>> I wanted to know the  mechanism I should be using so that the client gets
the popup of Login and password??
>>
>> Nimesh
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to