From 9b25f6b35e18082e6f477978e4e246b81e0ab2ba Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Mon, 22 Sep 2008 14:06:42 +0000 Subject: [PATCH] flow id handler mapping --- spring-webflow-reference/src/spring-mvc.xml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/spring-webflow-reference/src/spring-mvc.xml b/spring-webflow-reference/src/spring-mvc.xml index 58a6a3fd..56801724 100644 --- a/spring-webflow-reference/src/spring-mvc.xml +++ b/spring-webflow-reference/src/spring-mvc.xml @@ -39,19 +39,20 @@ Mapping URLs to Flows The DispatcherServlet maps request URLs to handlers. - A simple way to create URL mapping rules is to define a SimpleUrlHandlerMapping: + A flow is one type of handler. + The simplest way to configure the Dispatcher to map to flows is to define a FlowIdHandlerMapping - - - /hotels/booking=bookingFlowHandler - - + + + ]]> - The example above maps the servlet-relative request URL /hotels/booking to the bookingFlowHandler. + Configuring this mapping allows the Dispatcher to map application resource paths to flows in a flow registry. + For example, accessing the resource path /hotels/booking would result in a registry query for the flow with id hotels/booking. + If a flow is found with that id, that flow will handle the request. + If no flow is found, the next handler mapping in the Dispatcher's ordered chain will be queried or a "noHandlerFound" response will be returned.