I dont think you can do that with JSP.
Java is sandbox model o you should not have access to those information.
ASP uses ActiveX/certificate that is approved by user so it can acces
anything on Win platform
Tarik
----- Original Message -----
From: "Dimitri Maiorano" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 18, 2001 11:27 AM
Subject: Retrieve Windows NT Logon info from JSP
> I'd be grateful, if anyone could give me a hand. I should find out how
> to retrieve the Windows NT user id and domain. Such info identifies the
> user who accesses my JSP page within an Intranet.
>
> All I know is how to do it inside ASP pages:
>
> Request.servervariables("LOGON_USER")
>
> As far as I know, this method returns info according the format
> NT_DOMAIN\NT_LOGON. As a matter of fact, you proceed as follows:
>
> NT_USERID=
>
mid(Request.servervariables("LOGON_USER"),instr(1,Request.servervariables("L
OGON_USER"),"\")+1)
> NT_DOMAIN=
>
left(Request.servervariables("LOGON_USER"),instr(1,Request.servervariables("
LOGON_USER"),"\")-1))
>
> Thanks, Dimitri
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets