How to get current logged in Windows username?
Can anyone give me the struts code to get the logged in Windows User name?
July 10, 2008 at 10:56 AM
July 10, 2008 at 11:00 AM
hai srinath, use the following statement in your particular servlet/jsp. "String loginid = System.getProperty("user.name");" the above mentioned command displays the username who logged in to the system.hope this will solve your problem.