Custom JSP taglib. Lets you deal with JEE security roles. Two body tags check security constraints for the 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:
<%@ taglib uri="taglib.tld" prefix="if" %> <if:isInRole role="admin"> ... your code </if:isInRole> 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 JSOS - the largest collection of servlets and filters. |
Also in JSOS:
|