SEC-613: Rename tag libraries.
This commit is contained in:
parent
c24958d7b8
commit
3123d24337
|
@ -5,11 +5,11 @@
|
|||
<taglib>
|
||||
<tlib-version>1.0</tlib-version>
|
||||
<jsp-version>1.2</jsp-version>
|
||||
<short-name>authz</short-name>
|
||||
<uri>http://acegisecurity.org/authz</uri>
|
||||
<short-name>security</short-name>
|
||||
<uri>http://www.springframework.org/security/tags</uri>
|
||||
<description>
|
||||
Spring Securitys Authorization Tag Library
|
||||
$Id$
|
||||
$Id: authz.tld 2176 2007-10-03 14:02:39Z luke_t $
|
||||
</description>
|
||||
|
||||
<tag>
|
|
@ -1,5 +1,5 @@
|
|||
<%@ 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="fmt" uri="http://java.sun.com/jstl/fmt" %>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html>
|
||||
<head><title>Your Contacts</title></head>
|
||||
<body>
|
||||
<h1><authz:authentication operation="username"/>'s Contacts</h1>
|
||||
<h1><security:authentication operation="username"/>'s Contacts</h1>
|
||||
<P>
|
||||
<table cellpadding=3 border=0>
|
||||
<tr><td><b>id</b></td><td><b>Name</b></td><td><b>Email</b></td></tr>
|
||||
|
@ -18,12 +18,12 @@
|
|||
<td>
|
||||
<c:out value="${contact.email}"/>
|
||||
</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>
|
||||
</authz:accesscontrollist>
|
||||
<authz:accesscontrollist domainObject="${contact}" hasPermission="16">
|
||||
</security:accesscontrollist>
|
||||
<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>
|
||||
</authz:accesscontrollist>
|
||||
</security:accesscontrollist>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
|
|
|
@ -1429,8 +1429,7 @@ if (obj instanceof UserDetails) {
|
|||
<title>Overview</title>
|
||||
|
||||
<para>Spring Security comes bundled with several JSP tag libraries
|
||||
that eases JSP writing. The tag libraries are known as
|
||||
<literal>authz</literal> and provide a range of different
|
||||
that eases JSP writing. The tag libraries provide a range of different
|
||||
services.</para>
|
||||
</sect1>
|
||||
|
||||
|
@ -1439,19 +1438,19 @@ if (obj instanceof UserDetails) {
|
|||
|
||||
<para>All taglib classes are included in the core
|
||||
<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
|
||||
containers you can simply include the JAR in the WAR's
|
||||
<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
|
||||
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
|
||||
<literal>web.xml</literal>:</para>
|
||||
|
||||
<para><programlisting><taglib>
|
||||
<taglib-uri>http://acegisecurity.org/authz</taglib-uri>
|
||||
<taglib-location>/WEB-INF/authz.tld</taglib-location>
|
||||
<taglib-uri>http://www.springframework.org/security/tags</taglib-uri>
|
||||
<taglib-location>/WEB-INF/security.tld</taglib-location>
|
||||
</taglib> </programlisting></para>
|
||||
</sect1>
|
||||
|
||||
|
@ -1462,7 +1461,7 @@ if (obj instanceof UserDetails) {
|
|||
individual reference guide sections for details on how to use them.
|
||||
Note that when using the tags, you should include the taglib reference
|
||||
in your JSP: <programlisting>
|
||||
<%@ taglib prefix='authz' uri='http://acegisecurity.org/authz' %>
|
||||
<%@ taglib prefix='security' uri='http://www.springframework.org/security/tags' %>
|
||||
|
||||
</programlisting></para>
|
||||
</sect1>
|
||||
|
@ -1923,7 +1922,7 @@ if (obj instanceof UserDetails) {
|
|||
<para>The following JSP fragment illustrates how to use the
|
||||
<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
|
||||
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
|
||||
<literal>AuthorizeTag</literal>:</para>
|
||||
|
||||
<para><programlisting><authz:authorize ifAllGranted="ROLE_SUPERVISOR">
|
||||
<para><programlisting><security:authorize ifAllGranted="ROLE_SUPERVISOR">
|
||||
<td>
|
||||
<A HREF="del.htm?id=<c:out value="${contact.id}"/>">Del</A>
|
||||
</td>
|
||||
</authz:authorize> </programlisting></para>
|
||||
</security:authorize> </programlisting></para>
|
||||
|
||||
<para>This tag would cause the tag's body to be output if the
|
||||
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>
|
||||
|
||||
<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
|
||||
<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>
|
||||
</authz:accesscontrollist></programlisting></para>
|
||||
</security:accesscontrollist></programlisting></para>
|
||||
|
||||
<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"
|
||||
|
|
Loading…
Reference in New Issue