-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guojun,

Guojun Zhu wrote:
| I am
| wondering whether I can find out who is the login user in realm?

I think you're looking for HttpServletRequest.getPrincipal(). Calling
Principal.getName() will give you the username of the
currently-logged-in user.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiR0UcACgkQ9CaO5/Lv0PCXeACgmZCu3Cd4rOnXOCAm3J8em14o
9ooAniPh71CXBYMKdbUmvIuUdZN6cvWl
=HhB7
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to