Hi,

Protect both servlet and applet's class under the same realm on the web
server. Then the browser will send the same user/password pair for both,
without prompting for them more than once, if the web server will not
request a new authentication prompt.

And being protected, the servlet engine will be able to provide
information about authenticated user, through
javax.servlet.http.HttpServletRequest.getRemoteUser() method.

Cezar

On Tue, 24 Aug 1999, Shiraz Wasim Zaidi wrote:

> Hi!,
>
> I have a HTML page with an applet tag which is protected i.e if
> a user access the above URL he is prompted with a login window.
>
> After authentication applet talks to a servlet which is not protected
> (as i dont want users to authenticate twice).
>
> Would the above used user id ( incase of HTML) be accessible through
> getRemoteUser() method in the servlet.
>
> If not is there anyway to achieve this without protecting the servlet.
>
> Note: I am using Netscape enterprise server 3.5.1 on solaris.
>
> Thanks
> Shiraz
>

___________________________________________________________________________
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