That depends on the webserver. Netscape, for example, lets you "Restrict Access"
from its Admin server. Ditto with Apache.

Kenia Nimesh wrote:

> Thanks for yur message but , how to create directories in the webserver that
> require authentication.??
>
> Nimesh
> -----Original Message-----
> From: Scott Neufeld <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Wednesday, March 31, 1999 4:46 AM
> Subject: Re: getRemoteUser()
>
> >Most Http listeners let you set up diretories on your web server that
> require authentication; you can let the
> >server handle authentication prompting, and your servlets will be able to
> pick up the remote user variable. You
> >won't have to code the unauthorized message at all.
> >
> >
> >Andreas Ulrich wrote:
> >
> >> 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
> >

___________________________________________________________________________
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