Hi,

You can get user name with $context.getLocalUser() or users full name
with $context.getUser(). Full name means generally containing "XWiki."
be fore user name, it's the full name of the document containing the
user.

2007/11/7, V. Harikrishnan Nair <[EMAIL PROTECTED]>:
>
> Hi...
>
> I tried use $xwiki.getUser to get the current user's name but I got a value
> like this '[EMAIL PROTECTED]'.
> So, I looked into the API doc and used getLocalUser() but it does not work.
> This is the syntax that I used -
>
> #set($user = $xwiki.getLocalUser())
> $user
>
> What is wrong here ? It had given me an output for getUser().
>
> Harikrishnan
>
> --
> View this message in context: 
> http://www.nabble.com/using-getLocalUser%28%29-tf4763863.html#a13624781
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>


-- 
Thomas Mortagne
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to