AnsweredAssumed Answered

get current user

Question asked by ze on Jun 5, 2007
Latest reply on Jun 5, 2007 by kevinr
Hi,

I nedd to get the current user to my jsp (container.jsp) to write an log file..

wich bean i have to call?

I use this,

   LoginBean lb = new LoginBean();
   String userName = lb.getUsername();

   out.write("UserName "+userName);

   NavigationBean nb= new NavigationBean();
   String nb2 = nb.getCurrentNodeId();

   out.write("Current No:  "+nb2);

but the result cames nulll  :cry:

thanks in advance…

Outcomes