Under Tomcat 5.0.19 I had a logger statement in my application context
that created a log file. This log file contained, among other things, a
line each time a user successfully/unsuccessfully logged in, similar to:
2005-02-20 07:09:20 JDBCRealm[/stars]: Username xxx successfully
authenticated
Hi,
Does anyone know how to get back the username once the person logged in
with declarative security?
Thanks.
Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (phone)
301-838-6802 (fax)
[EMAIL PROTECTED]
-
To
request.getRemoteUser();
-Message d'origine-
De : Chaikin, Yaakov Y (US SSA) [mailto:[EMAIL PROTECTED]
Envoyé : mardi 9 décembre 2003 15:56
À : [EMAIL PROTECTED]
Objet : How to get username
Hi,
Does anyone know how to get back the username once the person logged in
with declarative
Howdy,
Umm, how about request.getUserPrincipal().getName() ?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Chaikin, Yaakov Y (US SSA)
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: How to get username
Hi,
Does
You can use rundata.getUser().getUserName();
This will return user's login name
Allen
-Original Message-
From: Chaikin, Yaakov Y (US SSA)
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 8:56 AM
To: [EMAIL PROTECTED]
Subject: How to get username
Hi,
Does anyone know how
It should be HttpServletRequest.getRemoteUser()
Chaikin, Yaakov Y (US SSA) wrote:
Hi,
Does anyone know how to get back the username once the person logged in
with declarative security?
Thanks.
Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (phone)
301-838-6802 (fax)
[EMAIL