[opencms-dev] session user , login-form

Florian Hopf Florian Hopf
Wed Apr 25 09:27:24 CEST 2007


Hi,

>
> Now I want to be able to read the currently logged in user and make it
> available on every page, e.g. in the footer like saying:
>
> "you are currently logged in as: [kuku]" - Logout
>
> What are the statements to obtain the current user from the session?
>
Should be something like this:
CmsJspActionElement jsp = new CmsJspActionElement(pageContext, request,
response);
out.println(jsp.getCmsObject().getRequestContext().currentUser().getName());

HTH
Flo




More information about the opencms-dev mailing list