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



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

Have Programming Question? Ask it here!
 
 
 


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


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


Advertisement
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.


Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com