Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Answers Viewqa Struts How to get current logged in Windows username?

View Questions and Answers by Category


Have Programming Question? Ask it here!

How to get current logged in Windows username?
2 Answer(s)      6 years and 11 months 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.

Related Tutorials/Questions & Answers: