2 Replies Latest reply on Sep 28, 2006 3:19 AM by Maxence Warzecha

    Know current login user in my bean

    Maxence Warzecha Newbie

      Hello !

      How can I know current user in my standard bean ?

      I user :
      * JSF
      * <auth-method>FORM</auth-method>
      * JBoss 4.0.4GA

      But I don't know how can i get login of the current user logged ...

      I try this :

      FacesContext fc = FacesContext.getCurrentInstance();
       HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);
      etc...

      But i can't find login after ...

      Can you help me ? :)
      thanks