Re: How to get user name after login
I think it is getRemoteUser(); --- ±ç¬±³õ [EMAIL PROTECTED] wrote: After implementation of JDBCRealm, how to retrieve the username in Servlet after login? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get user name after login
It is: request.getUserPrincipal().getName(); To check for a special role, use: request.isUserInRole(rolename); Am Donnerstag, den 15.09.2005, 03:49 -0700 schrieb Caroline Jen: I think it is getRemoteUser(); --- ±ç¬±³õ [EMAIL PROTECTED] wrote: After implementation of JDBCRealm, how to retrieve the username in Servlet after login? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sonja Löhr [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get user name after login
After implementation of JDBCRealm, how to retrieve the username in Servlet after login? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get user name after login
梁炳場 wrote: After implementation of JDBCRealm, how to retrieve the username in Servlet after login? getRemoteUser() - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]