我是 Spring webflow 的新手,现在我正在尝试 Spring recipes book 中的示例,我知道这是一个基本问题。
我收到如下错误,
org.springframework.webflow.definition.registry.NoSuchFlowDefinitionException: No flow definition '${flowExecutionUrl}&_eventId=next' found
at org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinitionHolder(FlowDefinitionRegistryImpl.java:126)
at org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl.getFlowDefinition(FlowDefinitionRegistryImpl.java:61)
at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:138)
at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)....
下面显示的是我的配置,
<bean name="flowController" class="org.springframework.webflow.mvc.servlet.FlowController">
<property name="flowExecutor" ref="flowExecutor"></property>
</bean>
<webflow:flow-executor id="flowExecutor" />
<webflow:flow-registry id="flowRegistry" >
<webflow:flow-location path="/WEB-INF/flows/welcome/welcome.xml"></webflow:flow-location>
</webflow:flow-registry>
/WEB-INF/flows/welcome/welcome.xml,
<view-state id="welcome">
<transition on="next" to="introduction" />
<transition on="skip" to="menu" />
</view-state>
<view-state id="introduction">
<on-render>
<evaluate expression="libraryService.getHolidays()" result="requestScope.holidays" />
</on-render>
<transition on="next" to="menu" />
</view-state>
<view-state id="menu"></view-state>
在welcome.jsp 中,
<a href="${flowExecutionUrl}&_eventId=next">Next</a>
<a href="${flowExecutionUrl}&_eventId=skip">Skip</a>
请让我知道出了什么问题。我正在使用 2.0.9 版本。
提前致谢, SD