Fires a content event if a user has the appropriate Principal (identity).

Class Name




Required Input Parameters


Set to one of the following four values:

Optional Input Parameters


The identity to look up. The value you specify depends on the value of the type parameter:

You can find a path for an organization or a global role by looking in the ACC People and Organizations task area. For example, you can find all global roles in the People and Organizations task area, under the Roles option. By expanding the Global Roles tree option, you can navigate to each role by traversing its path.

Notice that id values can have a leading slash, but one is not required.

Open Parameters


Rendered if the identity check is successful.


Rendered if the identity check fails.


Rendered if the user has no known identity.

Usage Notes

HasEffectivePrincipal checks whether a user has a specified identity and renders content based on the result of its query. For example, you can check if the user has a specific principal (identity), if the user is a member of a specified organization, or if the user has a specified role, and you can set this servlet bean to render that information.


HasEffectivePrincipal determines whether the current user is assigned the role of Administrator.

<dsp:droplet name="/atg/dynamo/droplet/HasEffectivePrincipal">
  <dsp:param name="type" value="role"/>
  <dsp:param name="id" value="Administrator"/>
  <dsp:oparam name="output"> You are an administrator<p> </dsp:oparam>
  <dsp:oparam name="default"> You are not an administrator<p> </dsp:oparam>
  <dsp:oparam name="unknown"> You are not logged in<p> </dsp:oparam>

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices