How to get current logged in Windows username?
2 Answer(s)      8 years ago
Posted in : Struts

Can anyone give me the struts code to get the logged in Windows User name?


View Answers

July 10, 2008 at 10:56 AM

Hai srinath,

July 10, 2008 at 11:00 AM

hai srinath, use the following statement in your particular servlet/jsp. "String loginid = System.getProperty("");" the above mentioned command displays the username who logged in to the system.hope this will solve your problem.