management:principalProperty

This taglib returns a principal property.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

userName

false

 

Object/String

The userName of the principal on which we wish to extract a property.

principal

false

 

Object/String

The principal on which we wish to extract a property.

attibuteName

false

 

Object/String

The property to fetch.

languageId

false

 

Object/String

The language to fetch in (default current).

 

ID-result variable contains:
A String-object.

Examples

This will result in that the alias of the current user is printed if it's set in the users properties.

<management:principalProperty id="alias" attributeName="Alias"/>
The user alias is: <c:out value="${alias}"/>



comments powered by Disqus