Click to See Complete Forum and Search --> : how to get remote user name in display page


karthik_k
08-06-2009, 02:30 AM
hi all,
i need to get the user name logged in to display in my welcome screen.
i hav tried using request.getParameter(user.name), :confused: am getting the local user name (i.e. user logged in server system). but i need to get the user name of the those who are all visitng my page. :)any pointer on this..

JavaServlet
08-08-2009, 11:31 PM
Do you need the Windows username or what username?

If you need the Windows username, try request.getRemoteUser() if the user has been authenticated by providing username and password.