Я новичок в Spring webflow, и сейчас я пробую пример из книги рецептов Spring, и я знаю, что это основной вопрос.
Я получаю сообщение об ошибке следующим образом,
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 / потоки / Добро пожаловать / 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 Release.
Заранее спасибо,
SD