在我的视图状态中没有调用转换,当我单击登录页面中的fogotusername链接时,它再次登陆登录页面本身。我认为 webflow 会话不知何故丢失了。任何想法?请帮忙。
我的 login.jsp 中的fogotUsername 链接如下:
<a href="login.do?_eventId=fogotUsername&page=init" > <spring:message code="label.forgetUsername" /></a>
我的登录流程xml如下:
<?xml version="1.0" encoding="UTF-8"?>
<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" start-state="login">
<view-state id="login" view="tiles.login">
<transition on="fogotUsername" to="viewForgotUsername">
</transition>
<transition on="fogotPassword" to="viewForgotPassword">
</transition>
</view-state>
<view-state id="viewForgotUsername" view="tiles.forgotUsername">
</view-state>
<view-state id="viewForgotPassword" model="password" view="tiles.changePassword">
<transition on="submit" to="viewForgotUsername"/>
</view-state>
<end-state id="loginend"/>
</flow>