35 lines
1.5 KiB
XML
35 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:flow="http://www.springframework.org/schema/webflow-config"
|
|
xsi:schemaLocation="
|
|
http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
|
http://www.springframework.org/schema/webflow-config
|
|
http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd">
|
|
|
|
<!--
|
|
Exposes web flows for execution at a single request URL.
|
|
The id of a flow to launch should be passed in by clients using
|
|
the "_flowId" request parameter:
|
|
e.g. /flowController.htm?_flowId=myflow
|
|
-->
|
|
<bean name="/flowController.htm" class="org.springframework.webflow.executor.mvc.FlowController">
|
|
<property name="flowExecutor" ref="flowExecutor" />
|
|
</bean>
|
|
|
|
<!-- Launches new flow executions and resumes existing executions. -->
|
|
<flow:executor id="flowExecutor" registry-ref="flowRegistry"/>
|
|
|
|
<!-- Creates the registry of flow definitions for this application -->
|
|
<flow:registry id="flowRegistry">
|
|
<flow:location path="/WEB-INF/flows/**/*-flow.xml" />
|
|
</flow:registry>
|
|
|
|
<!-- Resolves flow view names to .jsp templates -->
|
|
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
|
<property name="prefix" value="/WEB-INF/jsp/" />
|
|
<property name="suffix" value=".jsp" />
|
|
</bean>
|
|
|
|
</beans> |