title: How to get Windows Username through internet browser using Java/JSP or javascript?
body: <p>I want to get the <strong>Windows</strong> username of the user browsing my <strong>web page</strong> (this is for an intranet). This must be working on <strong>IE8</strong>, <strong>Chrome</strong>, and <strong>Firefox</strong> (Safari would be a plus).</p>
  
  <hr>
  
  <p>I came across this solution for <strong>Java</strong>:</p>
  
  <p><a href="http://www.ioplex.com/" rel="nofollow noreferrer">http://www.ioplex.com/</a> : Jespa - Java Active Directory Integration</p>
  
  <p>But this is a <em>proprietary</em> software library and even the example they provide does not work on my web application because we are not using an Apache web server. </p>
  
  <p>A solution in Java would be ideal if anyone got something?</p>
  
  <hr>
  
  <p>There seems to be some kind of solution in <strong>javascript</strong>:
  <a href="https://stackoverflow.com/questions/5335342/how-to-get-the-windows-user-name-using-javascript-in-google-chrome-browser-for-go">How to get the windows user name using javascript in google chrome browser for google chrome extension</a></p>
  
  <p>But nothing is said about IE8 and the Chrome solution seems quite a bit of work.</p>
  
  <hr>
  
  <p>Thanks in advance</p>