Code:
<!-- Resolves view names to protected .jsp resources within the /WEB-INF/views directory -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/views/"/>
<property name="suffix" value=".jsp"/>
</bean>
I wonder if this could be causing trouble? the jsp:s associated with the webflow are located inside the WEB-INF/flows/registration. I thought the FlowHandlerMapping took care of this but maybe this isn't the case? My idea is that Spring goes through the different handlers in an orderly fashion, matching requests agains the appropriate handler:
Code:
<!-- Maps requests to flows in the flowRegistry -->
<bean id="flowMappings" class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
<property name="order" value="0" />
<property name="flowRegistry" ref="flowRegistry" />
</bean>
<!-- Maps requests to @Controllers based on @RequestMapping("path") annotation values
If no annotation-based path mapping is found, Spring MVC proceeds to the next HandlerMapping (order=2 below). -->
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
<property name="order" value="1" />
</bean>
<!-- Maps requests to @Controllers based on controller class name convention; e.g. a request for /hotels or a /hotels sub-resource maps to HotelsController
If no class mapping is found, Spring MVC sends a 404 response and logs a pageNotFound warning. -->
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping">
<property name="order" value="2" />
</bean>
So that if a request for a flow comes in, the flowhandler takes over and handles it.
webflow-config.xml:
Code:
<!-- Configures the engine that executes web flows in this application -->
<webflow:flow-executor id="flowExecutor" flow-registry="flowRegistry" />
<!-- Registers the web flows that can be executed -->
<webflow:flow-registry id="flowRegistry" base-path="/WEB-INF/flows" flow-builder-services="flowBuilderServices">
<!-- Register all flow definitions within the /WEB-INF/flows directory ending in "-flow.xml" -->
<webflow:flow-location-pattern value="/**/*-flow.xml" />
</webflow:flow-registry>
<!-- Configures settings used to build web flow definitions; development=true enables flow definition refresh on change -->
<webflow:flow-builder-services id="flowBuilderServices" development="true" />