The user()
method
This method provides access to read the properties of the current user as specified in the "User - Management" backoffice module.
Parameters:
Name | Description |
java.lang.String property | Specifies which value to read of the current user. The following values are supported:
|
Example usage:
Get the first and the last name of the current user:
<% org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response); out.println(cms.user("firstname")); out.println(cms.user("lastname")); %>