title: Is it possible to get client os user name in java web application?
body: <p>i have website hosted on local server and this website is accessed by several local users, and i want when they access specific page to get the os user for the client/user accessing this page, when i tried the java code:</p>
  
  <pre><code>String currentUser=System.getProperty("user.name"); 
  </code></pre>
  
  <p>it gets the os user name for the server not the client.</p>
  
  <p>please advise how to accomplish that, thanks.</p>