From 89cbc9988ba3a94934c0d6198107a2ab5343cc1a Mon Sep 17 00:00:00 2001 From: Francois Beausoleil Date: Mon, 22 Mar 2004 20:29:16 +0000 Subject: [PATCH] * docs/reference/src/index.xml: Began documenting Acegi authz taglib. --- docs/reference/src/index.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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. + +