title: Get windows username using JAVA or JSP
body: <p>I want to get logged username on windows , I mean the user logged in to windows using java. I used 
  <code>System.getProperty("user.name");</code> but I got the server-name, not the user.</p>