我尝试向 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" />
那么为什么我从不进行过渡呢?