tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Fincher" <...@tbird.com>
Subject Re: JDBCRealm/Form login get current user ?(hope Craig is listening).
Date Mon, 02 Dec 2002 21:45:09 GMT
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" <dwbrown@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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message