You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by storck <di...@cms.tecmath.de> on 2001/11/27 15:31:34 UTC
JDBCRealm
Hi,
does someone know how i get acces to the (JDBC)Realm within struts ?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: JDBCRealm
Posted by David Winterfeldt <dw...@yahoo.com>.
To retrieve the user name once they are logged in.
request.getUserPrincipal().getName();
David
--- Scott Edwards <se...@caresoft.com> 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:
> <ma...@jakarta.apache.org>
> >For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: JDBCRealm
Posted by Scott Edwards <se...@caresoft.com>.
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: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>