mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 09:12:14 +00:00
* docs/reference/src/index.xml:
Began documenting Acegi authz taglib.
This commit is contained in:
parent
a92878b69f
commit
89cbc9988b
@ -909,6 +909,33 @@ public boolean supports(ConfigAttribute attribute);</programlisting></para>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>Authorization Tag Library</title>
|
||||||
|
|
||||||
|
<para>The Acegi Security System for Spring comes bundled with a
|
||||||
|
JSP tag library that eases JSP writing.</para>
|
||||||
|
|
||||||
|
<sect3>
|
||||||
|
<title>Installation</title>
|
||||||
|
</sect3>
|
||||||
|
|
||||||
|
<sect3>
|
||||||
|
<title>Usage</title>
|
||||||
|
|
||||||
|
<para>The following JSP fragment illustrates how to use the
|
||||||
|
authz taglib:</para>
|
||||||
|
|
||||||
|
<para><programlisting><authz:authorize ifAllGranted="ROLE_SUPERVISOR">
|
||||||
|
<td>
|
||||||
|
<A HREF="del.htm?id=<c:out value="${contact.id}"/>">Del</A>
|
||||||
|
</td>
|
||||||
|
</authz:authorize></programlisting></para>
|
||||||
|
|
||||||
|
<para>What this code says is: if the pricipal has been granted
|
||||||
|
ROLE_SUPERVISOR, allow the tag's body to be output.</para>
|
||||||
|
</sect3>
|
||||||
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<sect1>
|
<sect1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user