1 Reply Latest reply on Aug 30, 2006 9:48 AM by chuaky

    Get Login Userid

    chuaky

      dear all,

      I'm trying to retrieve the current userid from Jboss portal after login to Portal. How to do that?

      Did saw some hints from the Portal Reference Manual on 6.1.3.2
      (see http://docs.jboss.com/jbportal/v2.4/reference-guide/en/html_single/#d0e2691)

      But i don't have the "request" class because shield by myfaces?

      I'm using
      - facelets
      - myfaces
      - Jboss 4.0.4 +
      - Jboss Portal 2.4
      - Jboss seam 1.0.1GA

      Thanks.

        • 1. Re: Get Login Userid
          chuaky

          Found the answer ... just new the "UserPrincipal" class and call the getName method. "UserPrincipal" is defined in seam (see reference manual).

          Cheers.