Jie Yao wrote:
Is there a way to get the group info of an anthenticated user? If yes,
how can this be associated with the role info in a HttpServletRequest?
The servlet API does not have any concept of a "group" -- most people treat
roles as groups, however, because you can assign a role to more than one user
(and a user can be assigned more than one role).
You can ask if the current user is a member of a specific group like this:
if (request.isUserInRole("manager")) {
... this person is a manager ...
}
Thanks.
Jie Yao
Craig McClanahan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]