| Author |
how can I get the user name of the user authenticated by Tomcat in my servlet?
|
James Byars
Ranch Hand
Joined: Apr 15, 2009
Posts: 42
|
|
hi,
if I am using tomcat-users.xml, and I want to get the username in my servlet, can I?
thanks
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
Please be sure to ask Tomcat questions in the Tomcat forum. I have moved this post there for you.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Tim McGuire
Ranch Hand
Joined: Apr 30, 2003
Posts: 819
|
|
from API for httpServletRequest LINK
getRemoteUser()
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.
|
 |
James Byars
Ranch Hand
Joined: Apr 15, 2009
Posts: 42
|
|
Bear Bibeault wrote:Please be sure to ask Tomcat questions in the Tomcat forum. I have moved this post there for you.
sorry bear, I did not scroll down enough to notice that there is a whole page for Tomcat.
thank you
|
 |
James Byars
Ranch Hand
Joined: Apr 15, 2009
Posts: 42
|
|
Tim McGuire wrote:
from API for httpServletRequest LINK
getRemoteUser()
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.
thanks.
|
 |
 |
|
|
subject: how can I get the user name of the user authenticated by Tomcat in my servlet?
|
|
|