You could do it like so:
<jsp:scriptlet><![CDATA[
// get the current user
User user = MgnlContext.getUser();
pageContext.setAttribute("user", user);
]]></jsp:scriptlet>
<c:out value="${user.name}" />
I'm sure there are better ways to do this, there might even be a tag
in the cmsfn taglib. But that taglib is not documented yet...
-will
On 15.07.2008, at 08:36, Adrian Butnaru wrote:
Ok Will,
But how do I implement this to display it into the page. Is better
to build my own module and deploy it in lib directory or to modify
login form?
Adrian
Will Scheidegger schreef:
The current user is pretty easy to get:
// get the current user
User user = MgnlContext.getUser();
Does this answer your question?
-will
On 15.07.2008, at 08:21, Adrian Butnaru wrote:
Hi,
I configured MagnoliaPublic to use authentication before to go to
the first page. How is it possible to intercept the username so I
can use it later.
Thanks,
Adrian
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------