From 8c00bb1537a67d21a365f1407c69cb6c6eb6eafb Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Fri, 22 Feb 2008 16:21:37 +0000 Subject: [PATCH] SEC-674: Updated samples to work with new module layout. Changed taglib build to copy tld file to META-INF directory. Also standardized JSTL version to 1.1.0 (impl 1.1.2), moving deps to root sample pom. --- core/pom.xml | 10 - samples/cas/server/pom.xml | 2 +- samples/contacts/pom.xml | 176 +++++++++--------- .../src/main/webapp/WEB-INF/jsp/hello.jsp | 2 +- .../src/main/webapp/WEB-INF/jsp/include.jsp | 4 +- .../contacts/src/main/webapp/WEB-INF/web.xml | 10 +- .../contacts/src/main/webapp/acegilogin.jsp | 2 +- samples/dms/pom.xml | 1 - samples/pom.xml | 61 +++--- samples/preauth/pom.xml | 12 -- .../src/main/webapp/secure/extreme/index.jsp | 5 - samples/tutorial/pom.xml | 17 +- .../applicationContext-security-ns.xml | 2 +- .../main/webapp/WEB-INF/jsp/listAccounts.jsp | 2 +- taglibs/pom.xml | 14 ++ 15 files changed, 153 insertions(+), 167 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index 335ed0c606..7702563b37 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -149,16 +149,6 @@ false - - - ${basedir}/src/main/resources/org/springframework/security/taglibs - - META-INF - - *.tld - - false - ${basedir}/src/main/resources / diff --git a/samples/cas/server/pom.xml b/samples/cas/server/pom.xml index d03ee96890..53900ecf35 100644 --- a/samples/cas/server/pom.xml +++ b/samples/cas/server/pom.xml @@ -17,7 +17,7 @@ 6.1.7 /cas - ${basedir}/cas-server-webapp-3.1.1.war + ${basedir}/cas-server-webapp-3.2.war 9443 diff --git a/samples/contacts/pom.xml b/samples/contacts/pom.xml index 089ea5472f..379155b3ca 100644 --- a/samples/contacts/pom.xml +++ b/samples/contacts/pom.xml @@ -1,89 +1,83 @@ - - 4.0.0 - - org.springframework.security - spring-security-samples - 2.0-SNAPSHOT - - spring-security-samples-contacts - Spring Security - Contacts sample - war - - - - org.springframework.security - spring-security-core - ${project.version} - - + + 4.0.0 + org.springframework.security - spring-security-acl - ${project.version} - - - org.springframework - spring-webmvc - ${spring.version} - compile - - - org.springframework - spring-jdbc - compile - - - org.springframework - spring-aop - runtime - - - org.springframework - spring-remoting - runtime - - - javax.servlet - servlet-api - 2.4 - provided - - - net.sf.ehcache - ehcache - 1.2.4 - runtime - - - hessian - hessian - 3.0.1 - runtime - - - hsqldb - hsqldb - 1.8.0.4 - runtime - - - javax.servlet - jstl - 1.0 - runtime - - - taglibs - standard - 1.0.6 - runtime - - - org.springframework - spring-mock - ${spring.version} - test - - + spring-security-samples + 2.0-SNAPSHOT + + spring-security-samples-contacts + Spring Security - Contacts sample + war + + + + org.springframework.security + spring-security-core + ${project.version} + + + org.springframework.security + spring-security-acl + ${project.version} + + + org.springframework.security + spring-security-taglibs + ${project.version} + + + org.springframework + spring-webmvc + ${spring.version} + compile + + + org.springframework + spring-jdbc + compile + + + org.springframework + spring-aop + runtime + + + org.springframework + spring-remoting + runtime + + + javax.servlet + servlet-api + 2.4 + provided + + + net.sf.ehcache + ehcache + 1.3.0 + runtime + + + hessian + hessian + 3.0.1 + runtime + + + hsqldb + hsqldb + 1.8.0.4 + runtime + + + org.springframework + spring-mock + ${spring.version} + test + + @@ -96,12 +90,12 @@ maven-jetty-plugin 6.1.7 - /contacts - - 10 - + /contacts + + 10 + diff --git a/samples/contacts/src/main/webapp/WEB-INF/jsp/hello.jsp b/samples/contacts/src/main/webapp/WEB-INF/jsp/hello.jsp index 4f018bcc74..04d01e98b4 100644 --- a/samples/contacts/src/main/webapp/WEB-INF/jsp/hello.jsp +++ b/samples/contacts/src/main/webapp/WEB-INF/jsp/hello.jsp @@ -46,6 +46,6 @@ here's a random Contact:

Get started by clicking "Manage"...

">Manage -">Debug +">Debug diff --git a/samples/contacts/src/main/webapp/WEB-INF/jsp/include.jsp b/samples/contacts/src/main/webapp/WEB-INF/jsp/include.jsp index 9002df7977..738209fe39 100644 --- a/samples/contacts/src/main/webapp/WEB-INF/jsp/include.jsp +++ b/samples/contacts/src/main/webapp/WEB-INF/jsp/include.jsp @@ -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" %> diff --git a/samples/contacts/src/main/webapp/WEB-INF/web.xml b/samples/contacts/src/main/webapp/WEB-INF/web.xml index 078681e31c..38a3ac734c 100644 --- a/samples/contacts/src/main/webapp/WEB-INF/web.xml +++ b/samples/contacts/src/main/webapp/WEB-INF/web.xml @@ -1,5 +1,4 @@ - - + Contacts Sample Application @@ -114,9 +115,4 @@ /error.html - - /spring - /WEB-INF/spring.tld - - diff --git a/samples/contacts/src/main/webapp/acegilogin.jsp b/samples/contacts/src/main/webapp/acegilogin.jsp index 9950356282..8a9ca679a2 100644 --- a/samples/contacts/src/main/webapp/acegilogin.jsp +++ b/samples/contacts/src/main/webapp/acegilogin.jsp @@ -1,4 +1,4 @@ -<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %> +<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %> <%@ page import="org.springframework.security.ui.AbstractProcessingFilter" %> <%@ page import="org.springframework.security.ui.webapp.AuthenticationProcessingFilter" %> <%@ page import="org.springframework.security.AuthenticationException" %> diff --git a/samples/dms/pom.xml b/samples/dms/pom.xml index e70a4f8416..243432f7ca 100644 --- a/samples/dms/pom.xml +++ b/samples/dms/pom.xml @@ -19,7 +19,6 @@ spring-security-acl ${project.version} - org.springframework spring-jdbc diff --git a/samples/pom.xml b/samples/pom.xml index 3e1cf88a3e..63b0f8b703 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -1,23 +1,40 @@ - - 4.0.0 - - org.springframework.security - spring-security-parent - 2.0-SNAPSHOT - - org.springframework.security - spring-security-samples - Spring Security - Samples - pom - - - contacts - tutorial - dms - preauth - + + 4.0.0 + + org.springframework.security + spring-security-parent + 2.0-SNAPSHOT + + org.springframework.security + spring-security-samples + Spring Security - Samples + pom + + + contacts + tutorial + dms + preauth + + + + + jstl + jstl + 1.1.0 + runtime + + + taglibs + standard + 1.1.2 + runtime + + + diff --git a/samples/preauth/pom.xml b/samples/preauth/pom.xml index 2cb1207cb2..e425f75e99 100644 --- a/samples/preauth/pom.xml +++ b/samples/preauth/pom.xml @@ -39,18 +39,6 @@ spring-aop runtime - - javax.servlet - jstl - 1.1.2 - runtime - - - taglibs - standard - 1.0.6 - runtime - jaxen jaxen diff --git a/samples/preauth/src/main/webapp/secure/extreme/index.jsp b/samples/preauth/src/main/webapp/secure/extreme/index.jsp index 93f7a17cfc..5cc73bb8b6 100644 --- a/samples/preauth/src/main/webapp/secure/extreme/index.jsp +++ b/samples/preauth/src/main/webapp/secure/extreme/index.jsp @@ -1,14 +1,9 @@ -<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %>

VERY Secure Page

This is a protected page. You can only see me if you are a supervisor. - - You have "ROLE_SUPERVISOR" (this text is surrounded by <authz:authorize> tags). - -

Home

Logout diff --git a/samples/tutorial/pom.xml b/samples/tutorial/pom.xml index 5bfc4fc500..2cdf889c5b 100644 --- a/samples/tutorial/pom.xml +++ b/samples/tutorial/pom.xml @@ -20,6 +20,11 @@ spring-security-core-tiger ${project.version} + + org.springframework.security + spring-security-taglibs + ${project.version} + org.springframework spring-web @@ -39,18 +44,6 @@ spring-aop runtime - - javax.servlet - jstl - 1.1.2 - runtime - - - taglibs - standard - 1.0.6 - runtime - org.apache.directory.server apacheds-core diff --git a/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml b/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml index 5ac8c1dd7c..44b044df69 100644 --- a/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml +++ b/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml @@ -15,7 +15,7 @@ - +