diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/config/dispatcher-servlet-config.xml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/config/dispatcher-servlet-config.xml
new file mode 100644
index 00000000..3da3506e
--- /dev/null
+++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/config/dispatcher-servlet-config.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/web.xml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/web.xml
index e8501c26..dd5adc1e 100755
--- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/web.xml
+++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/web.xml
@@ -4,6 +4,7 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
+
contextConfigLocation
@@ -29,6 +30,7 @@
1
+
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
@@ -39,6 +41,7 @@
/*
+
org.springframework.web.context.ContextLoaderListener
@@ -58,18 +61,18 @@
- Spring Web MVC Dispatcher Servlet
+ Spring MVC Dispatcher Servlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
- /WEB-INF/config/web-application-config.xml
+ /WEB-INF/config/dispatcher-servlet-config.xml
2
- Spring Web MVC Dispatcher Servlet
+ Spring MVC Dispatcher Servlet
/spring/*
diff --git a/spring-webflow-samples/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/HotelsController.java b/spring-webflow-samples/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/HotelsController.java
index 346d3eb4..b41261be 100644
--- a/spring-webflow-samples/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/HotelsController.java
+++ b/spring-webflow-samples/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/HotelsController.java
@@ -3,14 +3,18 @@ package org.springframework.webflow.samples.booking;
import java.security.Principal;
import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
+@Controller
public class HotelsController {
private BookingService bookingService;
+ @Autowired
public HotelsController(BookingService bookingService) {
this.bookingService = bookingService;
}
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml
new file mode 100644
index 00000000..00b187c7
--- /dev/null
+++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/dispatcher-servlet-config.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/dispatcher-servlet-config.xml
new file mode 100644
index 00000000..3da3506e
--- /dev/null
+++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/dispatcher-servlet-config.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/security-config.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/security-config.xml
new file mode 100644
index 00000000..dd26fbeb
--- /dev/null
+++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/security-config.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/web-application-config.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/web-application-config.xml
new file mode 100644
index 00000000..34a35faa
--- /dev/null
+++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/web-application-config.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml
new file mode 100644
index 00000000..20cfdcf2
--- /dev/null
+++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml
new file mode 100644
index 00000000..2a4ace15
--- /dev/null
+++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+ /hotels/booking=bookingFlowHandler
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/web-application-config.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/web-application-config.xml
deleted file mode 100644
index f7b12c5f..00000000
--- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/web-application-config.xml
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
-
-
-
- /hotels/booking=bookingFlowHandler
- /hotels/*=hotelsController
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/web.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/web.xml
index 7bacf805..11157af7 100755
--- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/web.xml
+++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/web.xml
@@ -4,18 +4,16 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
-
+
contextConfigLocation
- /WEB-INF/web-application-config.xml
+ /WEB-INF/config/web-application-config.xml
-
+
+
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
@@ -24,20 +22,12 @@
springSecurityFilterChain
/*
-
-
+
+
org.springframework.web.context.ContextLoaderListener
-
- org.apache.tiles.web.startup.TilesListener
-
-
Resources Servlet
@@ -51,13 +41,13 @@
/resources/*
-
+
Spring MVC Dispatcher Servlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
- /WEB-INF/web-application-config.xml
+ /WEB-INF/config/dispatcher-servlet-config.xml
1