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("LOGON_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

Reply via email to