To retrieve the user name once they are logged in.

request.getUserPrincipal().getName();

David

--- Scott Edwards <[EMAIL PROTECTED]> wrote:
> My understanding of the Tomcat 4 JDBC Realm is that
> you don't get to 
> access it from within your application. Only Tomcat
> gets to access it. 
> However, the servlet 2.3 spec provides APIs whereby
> you can get the 
> username that the user logged in under and then use
> that to find any 
> information you need about that user.
> 
> Not sure what you are trying to accomplish, but I
> hope that might help a 
> little.
> 
> -Scott
> 
> storck wrote:
> 
> >Hi,
> >
> >does someone know how i get acces to the
> (JDBC)Realm within struts ?
> >
> >
> >--
> >To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to