SEC-613: Rename tag libraries.
This commit is contained in:
parent
c24958d7b8
commit
3123d24337
|
@ -5,11 +5,11 @@
|
||||||
<taglib>
|
<taglib>
|
||||||
<tlib-version>1.0</tlib-version>
|
<tlib-version>1.0</tlib-version>
|
||||||
<jsp-version>1.2</jsp-version>
|
<jsp-version>1.2</jsp-version>
|
||||||
<short-name>authz</short-name>
|
<short-name>security</short-name>
|
||||||
<uri>http://acegisecurity.org/authz</uri>
|
<uri>http://www.springframework.org/security/tags</uri>
|
||||||
<description>
|
<description>
|
||||||
Spring Securitys Authorization Tag Library
|
Spring Securitys Authorization Tag Library
|
||||||
$Id$
|
$Id: authz.tld 2176 2007-10-03 14:02:39Z luke_t $
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<tag>
|
<tag>
|
|
@ -1,5 +1,5 @@
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||||
<%@ taglib prefix="authz" uri="http://acegisecurity.org/authz" %>
|
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
|
||||||
|
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head><title>Your Contacts</title></head>
|
<head><title>Your Contacts</title></head>
|
||||||
<body>
|
<body>
|
||||||
<h1><authz:authentication operation="username"/>'s Contacts</h1>
|
<h1><security:authentication operation="username"/>'s Contacts</h1>
|
||||||
<P>
|
<P>
|
||||||
<table cellpadding=3 border=0>
|
<table cellpadding=3 border=0>
|
||||||
<tr><td><b>id</b></td><td><b>Name</b></td><td><b>Email</b></td></tr>
|
<tr><td><b>id</b></td><td><b>Name</b></td><td><b>Email</b></td></tr>
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
<td>
|
<td>
|
||||||
<c:out value="${contact.email}"/>
|
<c:out value="${contact.email}"/>
|
||||||
</td>
|
</td>
|
||||||
<authz:accesscontrollist domainObject="${contact}" hasPermission="8,16">
|
<security:accesscontrollist domainObject="${contact}" hasPermission="8,16">
|
||||||
<td><A HREF="<c:url value="del.htm"><c:param name="contactId" value="${contact.id}"/></c:url>">Del</A></td>
|
<td><A HREF="<c:url value="del.htm"><c:param name="contactId" value="${contact.id}"/></c:url>">Del</A></td>
|
||||||
</authz:accesscontrollist>
|
</security:accesscontrollist>
|
||||||
<authz:accesscontrollist domainObject="${contact}" hasPermission="16">
|
<security:accesscontrollist domainObject="${contact}" hasPermission="16">
|
||||||
<td><A HREF="<c:url value="adminPermission.htm"><c:param name="contactId" value="${contact.id}"/></c:url>">Admin Permission</A></td>
|
<td><A HREF="<c:url value="adminPermission.htm"><c:param name="contactId" value="${contact.id}"/></c:url>">Admin Permission</A></td>
|
||||||
</authz:accesscontrollist>
|
</security:accesscontrollist>
|
||||||
</tr>
|
</tr>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1429,8 +1429,7 @@ if (obj instanceof UserDetails) {
|
||||||
<title>Overview</title>
|
<title>Overview</title>
|
||||||
|
|
||||||
<para>Spring Security comes bundled with several JSP tag libraries
|
<para>Spring Security comes bundled with several JSP tag libraries
|
||||||
that eases JSP writing. The tag libraries are known as
|
that eases JSP writing. The tag libraries provide a range of different
|
||||||
<literal>authz</literal> and provide a range of different
|
|
||||||
services.</para>
|
services.</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -1439,19 +1438,19 @@ if (obj instanceof UserDetails) {
|
||||||
|
|
||||||
<para>All taglib classes are included in the core
|
<para>All taglib classes are included in the core
|
||||||
<literal>spring-security-xx.jar</literal> file, with the
|
<literal>spring-security-xx.jar</literal> file, with the
|
||||||
<literal>authz.tld</literal> located in the JAR's
|
<literal>security.tld</literal> located in the JAR's
|
||||||
<literal>META-INF</literal> directory. This means for JSP 1.2+ web
|
<literal>META-INF</literal> directory. This means for JSP 1.2+ web
|
||||||
containers you can simply include the JAR in the WAR's
|
containers you can simply include the JAR in the WAR's
|
||||||
<literal>WEB-INF/lib</literal> directory and it will be available. If
|
<literal>WEB-INF/lib</literal> directory and it will be available. If
|
||||||
you're using a JSP 1.1 container, you'll need to declare the JSP
|
you're using a JSP 1.1 container, you'll need to declare the JSP
|
||||||
taglib in your <literal>web.xml file</literal>, and include
|
taglib in your <literal>web.xml file</literal>, and include
|
||||||
<literal>authz.tld</literal> in the <literal>WEB-INF/lib</literal>
|
<literal>security.tld</literal> in the <literal>WEB-INF/lib</literal>
|
||||||
directory. The following fragment is added to
|
directory. The following fragment is added to
|
||||||
<literal>web.xml</literal>:</para>
|
<literal>web.xml</literal>:</para>
|
||||||
|
|
||||||
<para><programlisting><taglib>
|
<para><programlisting><taglib>
|
||||||
<taglib-uri>http://acegisecurity.org/authz</taglib-uri>
|
<taglib-uri>http://www.springframework.org/security/tags</taglib-uri>
|
||||||
<taglib-location>/WEB-INF/authz.tld</taglib-location>
|
<taglib-location>/WEB-INF/security.tld</taglib-location>
|
||||||
</taglib> </programlisting></para>
|
</taglib> </programlisting></para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -1462,7 +1461,7 @@ if (obj instanceof UserDetails) {
|
||||||
individual reference guide sections for details on how to use them.
|
individual reference guide sections for details on how to use them.
|
||||||
Note that when using the tags, you should include the taglib reference
|
Note that when using the tags, you should include the taglib reference
|
||||||
in your JSP: <programlisting>
|
in your JSP: <programlisting>
|
||||||
<%@ taglib prefix='authz' uri='http://acegisecurity.org/authz' %>
|
<%@ taglib prefix='security' uri='http://www.springframework.org/security/tags' %>
|
||||||
|
|
||||||
</programlisting></para>
|
</programlisting></para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
@ -1923,7 +1922,7 @@ if (obj instanceof UserDetails) {
|
||||||
<para>The following JSP fragment illustrates how to use the
|
<para>The following JSP fragment illustrates how to use the
|
||||||
<literal>AuthenticationTag</literal>:</para>
|
<literal>AuthenticationTag</literal>:</para>
|
||||||
|
|
||||||
<para><programlisting><authz:authentication operation="username"/></programlisting></para>
|
<para><programlisting><security:authentication operation="username"/></programlisting></para>
|
||||||
|
|
||||||
<para>This tag would cause the principal's name to be output. Here we
|
<para>This tag would cause the principal's name to be output. Here we
|
||||||
are assuming the <literal>Authentication.getPrincipal()</literal> is a
|
are assuming the <literal>Authentication.getPrincipal()</literal> is a
|
||||||
|
@ -5365,16 +5364,16 @@ public boolean supports(Class clazz);</programlisting></para>
|
||||||
<para>The following JSP fragment illustrates how to use the
|
<para>The following JSP fragment illustrates how to use the
|
||||||
<literal>AuthorizeTag</literal>:</para>
|
<literal>AuthorizeTag</literal>:</para>
|
||||||
|
|
||||||
<para><programlisting><authz:authorize ifAllGranted="ROLE_SUPERVISOR">
|
<para><programlisting><security:authorize ifAllGranted="ROLE_SUPERVISOR">
|
||||||
<td>
|
<td>
|
||||||
<A HREF="del.htm?id=<c:out value="${contact.id}"/>">Del</A>
|
<A HREF="del.htm?id=<c:out value="${contact.id}"/>">Del</A>
|
||||||
</td>
|
</td>
|
||||||
</authz:authorize> </programlisting></para>
|
</security:authorize> </programlisting></para>
|
||||||
|
|
||||||
<para>This tag would cause the tag's body to be output if the
|
<para>This tag would cause the tag's body to be output if the
|
||||||
principal has been granted ROLE_SUPERVISOR.</para>
|
principal has been granted ROLE_SUPERVISOR.</para>
|
||||||
|
|
||||||
<para>The <literal>authz:authorize</literal> tag declares the
|
<para>The <literal>security:authorize</literal> tag declares the
|
||||||
following attributes:</para>
|
following attributes:</para>
|
||||||
|
|
||||||
<para><itemizedlist spacing="compact">
|
<para><itemizedlist spacing="compact">
|
||||||
|
@ -5428,9 +5427,9 @@ public boolean supports(Class clazz);</programlisting></para>
|
||||||
<para>The following JSP fragment illustrates how to use the
|
<para>The following JSP fragment illustrates how to use the
|
||||||
<literal>AccessControlListTag</literal>:</para>
|
<literal>AccessControlListTag</literal>:</para>
|
||||||
|
|
||||||
<para><programlisting><authz:accesscontrollist domainObject="${contact}" hasPermission="8,16">
|
<para><programlisting><security:accesscontrollist domainObject="${contact}" hasPermission="8,16">
|
||||||
<td><A HREF="<c:url value="del.htm"><c:param name="contactId" value="${contact.id}"/></c:url>">Del</A></td>
|
<td><A HREF="<c:url value="del.htm"><c:param name="contactId" value="${contact.id}"/></c:url>">Del</A></td>
|
||||||
</authz:accesscontrollist></programlisting></para>
|
</security:accesscontrollist></programlisting></para>
|
||||||
|
|
||||||
<para>This tag would cause the tag's body to be output if the
|
<para>This tag would cause the tag's body to be output if the
|
||||||
principal holds either permission 16 or permission 1 for the "contact"
|
principal holds either permission 16 or permission 1 for the "contact"
|
||||||
|
|
Loading…
Reference in New Issue