1 Reply Latest reply on Mar 2, 2005 6:05 AM by Amit Bhayani

    how to get user roles after the user logged in

    Gyounghwa Kim Newbie

      I'm using form based declarative security using mysql database.
      After the user logged in, I want to display different selections on the screen
      depending on the role the user has using jsp or servlet.
      I can get the username using request.getRemoteUser(), but is there any way
      that I can get user roles from a pre-defined variables or functions?
      Or should I have to query the database again to know the role of the user ?
      Or is there any way that I can set it up ?

      Thank you for your help.