Browse Source
Also standardized JSTL version to 1.1.0 (impl 1.1.2), moving deps to root sample pom.2.0.x
15 changed files with 153 additions and 167 deletions
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> |
||||
<%@ 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" %> |
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %> |
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %> |
||||
|
||||
@ -1,23 +1,40 @@
@@ -1,23 +1,40 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
<parent> |
||||
<groupId>org.springframework.security</groupId> |
||||
<artifactId>spring-security-parent</artifactId> |
||||
<version>2.0-SNAPSHOT</version> |
||||
</parent> |
||||
<groupId>org.springframework.security</groupId> |
||||
<artifactId>spring-security-samples</artifactId> |
||||
<name>Spring Security - Samples</name> |
||||
<packaging>pom</packaging> |
||||
<modules> |
||||
<!-- |
||||
<module>annotations</module> |
||||
<module>attributes</module> |
||||
<module>dms</module> |
||||
--> |
||||
<module>contacts</module> |
||||
<module>tutorial</module> |
||||
<module>dms</module> |
||||
<module>preauth</module> |
||||
</modules> |
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
<parent> |
||||
<groupId>org.springframework.security</groupId> |
||||
<artifactId>spring-security-parent</artifactId> |
||||
<version>2.0-SNAPSHOT</version> |
||||
</parent> |
||||
<groupId>org.springframework.security</groupId> |
||||
<artifactId>spring-security-samples</artifactId> |
||||
<name>Spring Security - Samples</name> |
||||
<packaging>pom</packaging> |
||||
<modules> |
||||
<!-- |
||||
<module>annotations</module> |
||||
<module>attributes</module> |
||||
<module>dms</module> |
||||
--> |
||||
<module>contacts</module> |
||||
<module>tutorial</module> |
||||
<module>dms</module> |
||||
<module>preauth</module> |
||||
</modules> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>jstl</groupId> |
||||
<artifactId>jstl</artifactId> |
||||
<version>1.1.0</version> |
||||
<scope>runtime</scope> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>taglibs</groupId> |
||||
<artifactId>standard</artifactId> |
||||
<version>1.1.2</version> |
||||
<scope>runtime</scope> |
||||
</dependency> |
||||
</dependencies> |
||||
|
||||
</project> |
||||
|
||||
@ -1,14 +1,9 @@
@@ -1,14 +1,9 @@
|
||||
<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %> |
||||
|
||||
<html> |
||||
<body> |
||||
<h1>VERY Secure Page</h1> |
||||
This is a protected page. You can only see me if you are a supervisor. |
||||
|
||||
<authz:authorize ifAllGranted="ROLE_SUPERVISOR"> |
||||
You have "ROLE_SUPERVISOR" (this text is surrounded by <authz:authorize> tags). |
||||
</authz:authorize> |
||||
|
||||
<p><a href="../../">Home</a> |
||||
<p><a href="../../j_spring_security_logout">Logout</a> |
||||
</body> |
||||
|
||||
Loading…
Reference in new issue