1 Reply Latest reply on Aug 11, 2004 12:34 AM by Scott Stark

    "Roles" and rolegroups

    Steve Lewis Expert

      I'm writing a small web app to modify/maintain roles.properties and eventually have versions for database/ldap.

      How do roles that aren't in "Roles" work? Are they even visible to the web tier? I'm using this test JSP:

      <% out.println(request.isUserInRole("Role3")); %>
      <% out.println(request.isUserInRole("Role2")); %>

      And getting "false true" for the following roles.properties:

      steve=Role2
      steve.Application=Role3

      So the first line defaults to "Roles" rolegroup. How do I check if the user is in Role3 or not? Is it in the Subject somewhere? If I need to I can look at the JBossSX source.

      Thanks,