From: "Farrell, Patrick" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Subject: RE: JDBC Realm question Date: Fri, 11 Jul 2003 15:38:04 -0400
Try this ..
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String username = req.getUserPrincipal().getName(); }
Patrick Farrell
-----Original Message----- From: Jon Felmey [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 3:29 PM To: [EMAIL PROTECTED] Subject: JDBC Realm question
Hi all. I am using <auth-method>BASIC</auth-method> to have users log in. Is there a way for me to get the current username of the user that just logged in, in a servlet? I would like to log into a database each time a user logs in.
Thanks.
_________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
*********************************************************************** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. ***********************************************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
