春天网络流不工作

时间:2016-05-17 13:18:54

标签: java spring spring-webflow cas spring-webflow-2

我已将注销流程定义为:

<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow.xsd">

<view-state id="casLogoutPopup" view="casLogoutApplicationsPopup_new"> 
    <transition on="ok" to="test" />
    <transition on="cancel" to="test2" />
</view-state>

<view-state id="test" view="casLogoutView" />
<view-state id="test2" view="casLoginView" />

这是我的jsp文件&#34; casLogoutApplicationsPopup_new.jsp &#34;从浏览器访问注销时显示的内容。

<form>
    <input type="hidden" name="execution" value="${flowExecutionKey}" />
    <input class="btn_submit" type="submit" name="_eventId_ok" accesskey="o" value="OK" />
    <input class="btn_submit" type="submit" style="float: right" name="_eventId_cancel" accesskey="c" value="CANCEL"/>
</form>

问题是我无法启动&#34;测试&#34;单击“确定/取消”按钮时的Web流程。

1 个答案:

答案 0 :(得分:0)

尝试使用action属性中的执行url:

<form action="${flowExecutionUrl}">
    <input class="btn_submit" type="submit" name="_eventId_ok" accesskey="o" value="OK" />
    <input class="btn_submit" type="submit" style="float: right" name="_eventId_cancel" accesskey="c" value="CANCEL"/>
</form>
相关问题