| Author |
Getting currenlt y logged in user name using JAVA API ?
|
Nishant
Greenhorn
Joined: Sep 17, 2002
Posts: 6
|
|
Can anyone tell me how to get the information of the logged in username using JAVA? What I want to do is to make a HTML/JSP Web Page which will automatically take the windows authenticated username and display it on the second page when I press enter on the first page. Thanks a lot NA
|
 |
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
|
|
Nishant, Please change your name to be compliant with JavaRanch's naming policy. Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name. You can change your name: here. Thanks, Cindy
|
"JavaRanch, where the deer and the Certified play" - David O'Meara
|
 |
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
|
|
Many folks do not "log in" to Windows. You would REALLY be restricting yourself - not only to ONLY Windows user, but only those that use that functionality.
|
 |
Rodney Woodruff
Ranch Hand
Joined: Dec 04, 2001
Posts: 80
|
|
Try System.getProperty("user.name");
|
Hope This Helps
|
 |
 |
|
|
subject: Getting currenlt y logged in user name using JAVA API ?
|
|
|