How to get current logged in Windows username?

Ads

 
 

Share on Google+Share on Google+

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

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

Ads
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("user.name");" the above mentioned command displays the username who logged in to the system.hope this will solve your problem.

Ads









Ads

 
Advertisement null

Ads