Hitachi

uCosminexus Application Server Security Management Guide


16.2.5 The <ua:getPrincipalName/> tag

Organization of this subsection

(1) Description

Obtains or displays the Principal name (user ID) of a logged-in user.

(2) Tag attributes

The following table lists the tag attributes.

Table 16‒6: Tag attributes (<ua:getPrincipalName/> tag)

Tag attribute

Description

Type

Required?

C/E

id="id"

Specifies the identifier of an instance that references the Principal name (user ID) of a logged-in user. This tag attribute can also be used for the name of the script variable that references this instance. This instance has a page scope, which means that it can be referenced within the JSP page in which it is created. Therefore, the specified identifier should be unique for each page scope. If the id tag attribute is omitted, the obtained Principal name is embedded into the JSP page.

String

O

C

name="name"

Specifies the identifier (specified with the id tag attribute) of the JAAS LoginContext object specified with the <ua:login/> tag. If an incorrect identifier is specified, the id script variable is set to null.

n/a

R

E

Legend:

R: Required

O: Optional

n/a: Not applicable

C: Indicates that the tag attribute value is evaluated at JSP compile time.

E: Indicates that the tag attribute value is evaluated at execution time.