System.getProperty("user.name") gives me SYTEM as result
807588May 25 2009 — edited May 25 2009Hi
I have a problem getting the computer logged user with:
System.getProperty("user.name");
I developed a web application where i should get the logged user and use it to retrieve further information stored in a database.
When I run the application on my pc System.getProperty("user.name") gives me the correct username (the username logged on th pc)
now i deployed the application on a windows server 2003 but the same instruction gives me "SYSTEM" as result.
I don't know why. I was logged in with a domain username on the pc...
can you help me please?
thanks
Edited by: gnorro on May 25, 2009 7:52 AM