diff --git a/samples/contacts/build.xml b/samples/contacts/build.xml
index d5011f09a6..e503ace24c 100644
--- a/samples/contacts/build.xml
+++ b/samples/contacts/build.xml
@@ -119,13 +119,11 @@
-
-
-
+
diff --git a/samples/contacts/etc/filter/applicationContext.xml b/samples/contacts/etc/filter/applicationContext.xml
new file mode 100644
index 0000000000..86de57f47f
--- /dev/null
+++ b/samples/contacts/etc/filter/applicationContext.xml
@@ -0,0 +1,231 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ publicIndexController
+ secureAddForm
+ secureIndexController
+ secureDeleteController
+
+
+
+
+
+
+ true
+ webContact
+ sample.contact.WebContact
+
+ add
+ index.htm
+
+
+
+
+
+
+ /WEB-INF/jsp/
+ .jsp
+
+
+
+
+
+
+ my_run_as_password
+
+
+
+
+
+ my_run_as_password
+
+
+
+ my_password
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ marissa=koala,ROLE_TELLER,ROLE_SUPERVISOR
+ dianne=emu,ROLE_TELLER
+ scott=wombat,ROLE_TELLER
+ peter=opal,disabled,ROLE_TELLER
+
+
+
+
+
+
+ false
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sample.contact.ContactManager.delete=ROLE_SUPERVISOR,RUN_AS_SERVER
+ sample.contact.ContactManager.getAllByOwner=CONTACT_OWNED_BY_CURRENT_USER,RUN_AS_SERVER
+ sample.contact.ContactManager.save=CONTACT_OWNED_BY_CURRENT_USER,RUN_AS_SERVER
+ sample.contact.ContactManager.getById=ROLE_TELLER,RUN_AS_SERVER
+
+
+
+
+
+
+
+
+
+
+
+ sample.contact.ContactManager.delete=ROLE_RUN_AS_SERVER
+ sample.contact.ContactManager.getAllByOwner=ROLE_RUN_AS_SERVER
+ sample.contact.ContactManager.save=ROLE_RUN_AS_SERVER
+ sample.contact.ContactManager.getById=ROLE_RUN_AS_SERVER
+
+
+
+
+
+
+
+ sample.contact.ContactManager
+
+
+ publicContactManagerSecurity
+ publicContactManagerTarget
+
+
+
+
+
+
+
+
+
+ sample.contact.ContactManager
+
+
+ backendContactManagerSecurity
+ backendContactManagerTarget
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
+ \A/secure/super.*\Z=ROLE_WE_DONT_HAVE
+ \A/secure/.*\Z=ROLE_SUPERVISOR,ROLE_TELLER
+
+
+
+
+
+
+
diff --git a/samples/contacts/etc/filter/web.xml b/samples/contacts/etc/filter/web.xml
index ce834202b2..fedb2d80dc 100644
--- a/samples/contacts/etc/filter/web.xml
+++ b/samples/contacts/etc/filter/web.xml
@@ -15,14 +15,18 @@
Example of an application secured using Acegi Security System for Spring.
+
+
+ contextConfigLocation
+ /WEB-INF/applicationContext.xml
+
Acegi Authentication Processing Filter
net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilter
-
- appContextLocation
- web-filters-acegisecurity.xml
-
authenticationFailureUrl
/acegilogin.jsp?login_error=1
@@ -37,20 +41,14 @@
-
Acegi Security System for Spring Auto Integration Filter
net.sf.acegisecurity.ui.AutoIntegrationFilter
-
Acegi HTTP Request Security Filter
net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter
-
- appContextLocation
- web-filters-acegisecurity.xml
-
loginFormUrl
/acegilogin.jsp
@@ -72,6 +70,16 @@
/*
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+