(Quick Reference)

s:ifPermitted

Purpose

Renders the body of the tag only if the user permissions are met.

This uses the underlying security provider to test the condition.

Example

<s:ifPermitted role="ADMIN">
   Welcome admin!
</s:ifPermitted>

Attributes

NamePurpose
roleRequired - The role to test for. If the user has this role the body will be rendered