2 Replies Latest reply on May 16, 2007 3:58 AM by ludovic.bert

    isUserInRole doesnt work in jsp

    hubertg

      hi,

      [jboss-portal bundle 2.4]

      i have a portlet which dispatches to a jsp to render the output.

      now my problem:

      within the portlet i can execute

      aRequest.isUserInRole("student"));


      this returns true because the given user is a student.

      but wihin the jsp
      <% out.println("jsp in role : " + request.isUserInRole("student")); %>


      always returns false.

      is there a problem with the implicit request object within the jsp? do I have to declare my role somewhere else?? ... i really have no idea what I could try.

      thanks for any hints.

      /r
      hubert