0

我尝试向 Jasig CAS 添加一些功能,所以我必须添加

lost_login-webflow.xml :

<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-2.0.xsd">
    <var name="lostLoginModel" class="***.*****.LostLoginModel" />

    <view-state id="viewLostLoginForm" view="casLostLoginView"
        model="lostLoginModel">
        <binder>
            <binding property="email" />
        </binder>
        <on-entry>
            <set name="viewScope.commandName" value="'lostLoginModel'" />
        </on-entry>
        <transition on="submit" to="lostLoginSubmit" />
    </view-state>

    <action-state id="lostLoginSubmit">
        <evaluate
            expression="lostLoginAction.submit(flowRequestContext, flowScope.lostLoginModel, messageContext)" />
        <transition on="success" to="viewGenericLoginSuccess" />
        <transition on="error" to="viewServiceErrorView" />
    </action-state>

    <end-state id="viewGenericLoginSuccess" view="casLoginGenericSuccessView" />
    <end-state id="viewServiceErrorView" view="viewServiceErrorView" />
</flow>

在我的 jsp 中,我设置了<input type="hidden" name="execution" value="${flowExecutionKey}" /><input type="hidden" name="_eventId" value="submit" />.

我的视图在 url /lostLogin中加载得很好,但是当我提交表单时没有任何反应......(我的表单基于 CAS 服务器的默认表单)

即使我什么都没<transition on="submit" to="lostLoginSubmit" />发生<transition on="submit" to="viewGenericLoginSuccess" />

那么为什么我从不进行过渡呢?

4

1 回答 1

0

我没有真正的答案,但我将我的 CAS 服务器从 4.0.3 更新到了 4.1.0-RC1,并调用了转换...(我没有更改我的 Web 流配置中的任何内容)

于 2015-08-21T14:33:29.790 回答