Custom JSP taglib. Two body tags check security constraints for request. Tag isInRole executes own body if user in the given role originates request and tag isNotInRole executes own body if user is not in the given role.
For example:
Tags are:
isInRole
Executes own body if user is in the given role. Parameters are:
1) role security role. You can use commas separated list of roles here also. Comma here is logical OR.
isNotInRole
Executes own body if user is not in the given role. Parameters are:
1) role security role. You can use commas separated list of roles here also. Comma here is logical AND.
for downloading:
Library: roletag.jar Description: taglib.tld
See also Coldtags suite - the largest collection of custom JSP tags.