On 2/27/2003 at 5:07 PM laurent marot wrote:

>thanks but this method just allows checking if user match a role, i'd like
>to get a method to discover the role.

There is no such facility in the servlet api. Given a user, there is no way
to get a list of roles to which the user belongs. I too find this a
distressing limitation in using container managed security. Best you can do
is iterate over the list of role names and see which ones to which the user
belongs, which of course doesn't help you if you don't have such a list.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to