From f482b571086ca8fb1c785ab2c4ae22ec295298da Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 23 Jul 2012 09:21:34 -0700 Subject: [PATCH] Update demo to show saved output to flash scope This demo shows how flow output can be mapped to MVC flash scope. In this case the output is a simple string message that will be displayed to the user. Issues: SWF-1561 --- .../src/main/webapp/WEB-INF/config/webmvc-config.xml | 3 ++- .../main/webapp/WEB-INF/hotels/booking/booking-flow.xml | 6 ++++-- booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp | 5 +++++ booking-mvc/src/main/webapp/styles/booking.css | 7 +++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml index 7a6ff19..1628c08 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -40,9 +40,10 @@ + - \ No newline at end of file + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/booking-flow.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/booking-flow.xml index e706bb2..f20ddb9 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/booking-flow.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/booking-flow.xml @@ -43,8 +43,10 @@ - + + + - \ No newline at end of file + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp index 50d79b9..ecc910b 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp @@ -1,5 +1,10 @@ <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + +
${confirmed}
+
+ diff --git a/booking-mvc/src/main/webapp/styles/booking.css b/booking-mvc/src/main/webapp/styles/booking.css index b8d17e4..c072166 100644 --- a/booking-mvc/src/main/webapp/styles/booking.css +++ b/booking-mvc/src/main/webapp/styles/booking.css @@ -51,3 +51,10 @@ button:hover { font-weight: bold; } +div.confirmed { + border: solid 1px #CCCCCC; + background: #E4F7CD; + padding: 4px; + font-weight: bold; + margin-bottom: 4px; +}