From dbb914d9063eb5292ec3595c903a71f8d50caadb Mon Sep 17 00:00:00 2001 From: Scott Andrews Date: Wed, 5 Mar 2008 21:01:59 +0000 Subject: [PATCH] Updated to work with Web Flow 2.0. Added Spring Security integration. --- .../webapp/WEB-INF/flow/booking/booking.xml | 43 ++++++ .../WEB-INF/flow/booking/bookingForm.jsp | 135 ++++++++++++++++++ .../WEB-INF/flow/booking/confirmBooking.jsp | 68 +++++++++ .../WEB-INF/flow/booking/hotelDetails.jsp | 55 +++++++ .../main/webapp/WEB-INF/flow/main/main.jsp | 104 ++++++++++++++ .../main/webapp/WEB-INF/flow/main/main.xml | 44 ++++++ 6 files changed, 449 insertions(+) create mode 100755 spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/booking.xml create mode 100755 spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/bookingForm.jsp create mode 100755 spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/confirmBooking.jsp create mode 100755 spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/hotelDetails.jsp create mode 100755 spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/main/main.jsp create mode 100755 spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/main/main.xml diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/booking.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/booking.xml new file mode 100755 index 00000000..dfadb96f --- /dev/null +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/booking.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/bookingForm.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/bookingForm.jsp new file mode 100755 index 00000000..31e86c1c --- /dev/null +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/bookingForm.jsp @@ -0,0 +1,135 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> + + + + +
+

Book Hotel

+
+ +
+ + +
+
+
Name:
+
${hotel.name}
+
+
+
Address:
+
${hotel.address}
+
+
+
City, State:
+
${hotel.city}, ${hotel.state}
+
+
+
Zip:
+
${hotel.zip}
+
+
+
Country:
+
${hotel.country}
+
+
+
Nightly rate:
+
+ ${status.value} +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + + + + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+   +   +
+
+
+
+ +
+
\ No newline at end of file diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/confirmBooking.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/confirmBooking.jsp new file mode 100755 index 00000000..2c2b1470 --- /dev/null +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/confirmBooking.jsp @@ -0,0 +1,68 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> + + + + +
+

Confirm Hotel Booking

+
+ +
+ +
+
+
Name:
+
${hotel.name}
+
+
+
Address:
+
${hotel.address}
+
+
+
City, State:
+
${hotel.city}, ${hotel.state}
+
+
+
Zip:
+
${hotel.zip}
+
+
+
Country:
+
${hotel.country}
+
+
+
Total payment:
+
+ ${status.value} +
+
+
+
Check In Date:
+
+ ${status.value} +
+
+
+
Check Out Date:
+
+ ${status.value} +
+
+
+
Credit Card #:
+
${booking.creditCard}
+
+
+   +   +   +
+
+
+
+ +
+
\ No newline at end of file diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/hotelDetails.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/hotelDetails.jsp new file mode 100755 index 00000000..095ccda6 --- /dev/null +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/booking/hotelDetails.jsp @@ -0,0 +1,55 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> + + + + +
+

View Hotel

+
+ +
+ +
+
+
Name:
+
${hotel.name}
+
+
+
Address:
+
${hotel.address}
+
+
+
City:
+
${hotel.city}
+
+
+
State:
+
${hotel.state}
+
+
+
Zip:
+
${hotel.zip}
+
+
+
Country:
+
${hotel.country}
+
+
+
Nightly rate:
+
+ ${status.value} +
+
+
+   +   +
+
+
+
+ +
+
\ No newline at end of file diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/main/main.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/main/main.jsp new file mode 100755 index 00000000..ae704e77 --- /dev/null +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/main/main.jsp @@ -0,0 +1,104 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %> + + + + + +
+ + + +

Search Hotels

+
+ + + + + + + + +
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
NameAddressCity, StateZipAction
${hotel.name}${hotel.address}${hotel.city}, ${hotel.state}, ${hotel.country}${hotel.zip} + View Hotel +
No hotels found
+
+
+ + +
+

Current Hotel Bookings

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameAddressCity, StateCheck in DateCheck out DateConfirmation NumberAction
${booking.hotel.name}${booking.hotel.address}${booking.hotel.city}, ${booking.hotel.state}${booking.checkinDate}${booking.checkoutDate}${booking.id} + Cancel +
No booking history
+
+
+ + +
+
\ No newline at end of file diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/main/main.xml b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/main/main.xml new file mode 100755 index 00000000..47e77980 --- /dev/null +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/flow/main/main.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file