users@glassfish.java.net

Re: Security Roles

From: Venugopal Rao K <K.Venugopal_at_Sun.COM>
Date: Mon, 19 Jan 2009 08:18:52 +0530

bfscom wrote:
> Hello,
>
> I have a question in security roles/groups. My web app authentication login
> form/security is working well but I want to control the jsp pages depending
> on the user Roles.
>
> For example:
>
> if Role == admin {
> //do this
> } else {
> //do this
> }
>
> I tried the isUserInRole but it does not work. I use jdbc realm
> authentication. Any suggestions? :)
>
send us your web.xml and sun-web.xml
Regards,
Venu