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" <[EMAIL PROTECTED]>

>
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to