Hi,
New to this tech. I need to get the Windows User name on the login page. i am trying to use request.getRemoteUser() but all the time it is returning me null.
Here is the code i am using.
<html>
<head>
<title>
Get NT User
</title>
</head>
<body bgcolor="#ffffff">
<%
String sUserName;
String sAuthType;
sUserName = request.getRemoteUser();
%>
User Name is <%=sUserName %>
</body>
</html>
New to this tech. I need to get the Windows User name on the login page. i am trying to use request.getRemoteUser() but all the time it is returning me null.
Here is the code i am using.
<html>
<head>
<title>
Get NT User
</title>
</head>
<body bgcolor="#ffffff">
<%
String sUserName;
String sAuthType;
sUserName = request.getRemoteUser();
%>
User Name is <%=sUserName %>
</body>
</html>