diff --git a/docs/reference/src/index.xml b/docs/reference/src/index.xml index 29f304bf81..b5815d59b1 100644 --- a/docs/reference/src/index.xml +++ b/docs/reference/src/index.xml @@ -909,6 +909,33 @@ public boolean supports(ConfigAttribute attribute); + + + Authorization Tag Library + + The Acegi Security System for Spring comes bundled with a + JSP tag library that eases JSP writing. + + + Installation + + + + Usage + + The following JSP fragment illustrates how to use the + authz taglib: + + <authz:authorize ifAllGranted="ROLE_SUPERVISOR"> + <td> + <A HREF="del.htm?id=<c:out value="${contact.id}"/>">Del</A> + </td> +</authz:authorize> + + What this code says is: if the pricipal has been granted + ROLE_SUPERVISOR, allow the tag's body to be output. + +