Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get remote user name in a jsp page?  RSS feed

 
karthik kalyanasundaram
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi folks,
i need to get the remote user name in a jsp page.
i have tried using System.getProperty("");
am getting the user name but i need to get the remote user name instead of server user name.
even i tried using request.getRemoteUser() , but am getting null value!

any pointer on this will be helpful for me??
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.getRemoteUser() will only return something if the user has been authenticated (by providing username and password); is that the case?
 
karthik kalyanasundaram
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no its not that case..i didnt get any username and password. just i need to get the remote user name to display in welcome screen. i am using from my company 's intranet. i need to get remote user name from all who are visiting my page.? can anyone please suggest any valuable idea?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What username are you talking about? Their Windows username? Their workgroup username? Something else?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!