Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 24891 invoked from network); 13 Feb 2003 17:08:29 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 13 Feb 2003 17:08:29 -0000 Received: (qmail 22464 invoked by uid 97); 13 Feb 2003 17:10:02 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 22457 invoked from network); 13 Feb 2003 17:10:01 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 13 Feb 2003 17:10:01 -0000 Received: (qmail 5937 invoked by uid 500); 13 Feb 2003 17:03:30 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 5745 invoked from network); 13 Feb 2003 17:03:26 -0000 Received: from host-62-245-186-226.customer.m-online.net (HELO world.ect-telecoms.de) (62.245.186.226) by daedalus.apache.org with SMTP; 13 Feb 2003 17:03:26 -0000 Received: from mucs001.ect-telecoms.de (localhost [127.0.0.1]) by world.ect-telecoms.de (Welcome to European Computer Telecoms AG / Redshepherd GmbH MailRelay.) with ESMTP id EEA262EFC7 for ; Thu, 13 Feb 2003 17:03:27 +0000 (/etc/localtime) Received: by mucs001.ect-telecoms.de with Internet Mail Service (5.5.2650.21) id <142K4GC7>; Thu, 13 Feb 2003 18:03:40 +0100 Message-ID: <11EF704D97C1D41186520002B30902C9465B2B@mucs001.ect-telecoms.de> From: Barney Hamish To: 'Tomcat Users List' Subject: RE: get User object from tomcat Date: Thu, 13 Feb 2003 18:03:36 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You can't. You need to go and retrieve whatever other info from your database yourself probably using the username as the primary key. Hamish > -----Original Message----- > From: fangfang cai [mailto:fcai@findlaw.com] > Sent: Thursday, February 13, 2003 6:01 PM > To: Tomcat Users List > Subject: RE: get User object from tomcat > > > But how can we get the all user info from principal > like user fullname? > > -Fang > > -----Original Message----- > From: Jeanfrancois Arcand [mailto:jfarcand@apache.org] > Sent: Wednesday, February 12, 2003 8:24 PM > To: Tomcat Users List > Subject: Re: get User object from tomcat > > > Humm...not clear. I guess you mean the principal. Looks at: > > HttpServletRequest.getUserPrincipal() that returns the current > authenticated user > HttpServletRequest.isUserInRole(String role) to see if the current > authenticated user is included in the specified logical role. > > -- Jeanfrancois > > fangfang cai wrote: > > >Hi, > > > >Does anyone know how to get the User object(MemoryUser object) which > >contains user's fullname, roles .....? > > > >Thanks, > > > >Fang > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org