Results 1 to 2 of 2
  1. #1
    sdkrp is offline Member
    Join Date
    Sep 2013
    Rep Power

    Default How to get Windows user name

    Hi Everyone,

    tomcat server is running on my machine. when call the URL of web application from another system it's working. i want to get the windows username of the system which one use the URL.

    using the following code to the windows username. NTSystem = new;


    But what the issue it's bring my pc windows username. how can i get the pc name which is used my URL. please do the needful.

    thanks & regards,

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: How to get Windows user name

    You can only get that if it's supplied by the client.
    It's not something that is supplied in an http request normally.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 1
    Last Post: 05-03-2013, 03:57 PM
  2. Problem when the same user login in different windows
    By murali23krishna in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 04-07-2012, 07:19 AM
  3. Java Windows logged in user Info
    By vishrut_n_shah in forum New To Java
    Replies: 1
    Last Post: 11-17-2011, 04:56 AM
  4. How to capture Windows Active User
    By chyrl in forum Advanced Java
    Replies: 4
    Last Post: 06-11-2010, 10:21 AM
  5. Replies: 0
    Last Post: 02-06-2008, 03:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts