You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Brown <dw...@webitplanet.com> on 2002/12/02 21:07:35 UTC
JDBCRealm/Form login get current user ?(hope Craig is listening).
Hello tc-users and Craig McClanahan, i have been very successfull and lucky
developing protected webapps using form-based login and JDBCRealm for the
oracle database. WooHoo! i have searched the source JDBCRealm and RealmBase
and cannot come up any ideas on how to determine who is currently logged in
and using the "protected" webapp locations. the users, roles, and user_roles
tables are working perfectly. Anyone w/ ideas on how to do a so-called:
getUser or getCurrentLogin programmatically? maybe there is some server.xml
config i could do. any and all ideas, suggestion, rants and raves welcomed.
thanx, david.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: JDBCRealm/Form login get current user ?(hope Craig is listening).
Posted by Rick Fincher <rn...@tbird.com>.
Hi David,
String user = request.getRemoteUser();
Returns the username of the current user if authentucated or null if not
authenticated.
See HttpServletRequest in J2EE platform docs for more info.
Rick
----- Original Message -----
From: "David Brown" <dw...@webitplanet.com>
>
> Hello tc-users and Craig McClanahan, i have been very successfull and
lucky
> developing protected webapps using form-based login and JDBCRealm for the
> oracle database. WooHoo! i have searched the source JDBCRealm and
RealmBase
> and cannot come up any ideas on how to determine who is currently logged
in
> and using the "protected" webapp locations. the users, roles, and
user_roles
> tables are working perfectly. Anyone w/ ideas on how to do a so-called:
> getUser or getCurrentLogin programmatically? maybe there is some
server.xml
> config i could do. any and all ideas, suggestion, rants and raves
welcomed.
> thanx, david.
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>