0

I have a JSP page where I need to fetch the current username logged into client machine.

Is there any way to get the windows username (client) by Java or javascript?

I found some article on the same topic but unfortunately none of them works in my case.

Any suggestion?

ArCiGo
  • 178
  • 1
  • 6
  • 20
  • Check this: [Retrieve current Windows user in Java EE web application](https://stackoverflow.com/questions/4590227/retrieve-current-windows-user-in-java-ee-web-application-for-single-sign-on-purp), doesn't it work? – Sphinx Feb 01 '18 at 18:54
  • That smells like [X/Y problem](https://meta.stackexchange.com/q/66377). Why do you need Windows username? – Pshemo Feb 01 '18 at 18:57
  • I found a lot of articles by keyword='java servlet get os username' at google. – Sphinx Feb 01 '18 at 18:57
  • @Nina Scholz, Javascript should have no way to implement this. But Java servlet should have some solutions (check the link: [Retrieve current Windows user in Java EE web application](https://stackoverflow.com/questions/4590227/retrieve-current-windows-user-in-java-ee-web-application-for-single-sign-on-purp),) – Sphinx Feb 01 '18 at 19:01
  • I haven't found any solution till now using Servlet or Javascript. I am searching something like applet that could get the information from the client machine & pass it to any servlet. – AYAN DUTTA Feb 01 '18 at 19:55

0 Answers0