I have a web application which I recenlty integrated with LDAP login module for authentication and authorization. I am able to successfully perform authentication and authorization. Now I want to provide role based permisibilty. For example I have a page with some input fields and then some buttons as well. So based on the role of the user only certains fields and buttons pertaining to the user will be displayed. I am able to do this on a small scale where I have 5 groups by referring the request.isUserInRole() to get the user and redirect them using response.sendRedirect to some page. But how can I do this for 300 groups and I dont want to redirect them to a different page instead I would just like to have a single html or jsp page and then display only the certain information pertaining to the group. Can someone please point me in the right direction. I am using JBoss 6.1.0 and AD LDAP Thanks.