Spring Web フロー アプリケーションを作成しようとしています。次の状況があります。
flow1.xml
<var name="user" class="com.test.User" />
<view-state id="signup" model="user">
<transition on="loginCredentialsEntered" to="lookupUser" />
</view-state>
<decision-state id="lookupUser">
<if test="myActionBean.lookupUser(user)"
then="userRegistered" else="registerUser" />
</decision-state>
signup.jsp:
<html xmlns:form="http://www.springframework.org/tags/form">
<body>
<form action="&_eventId=loginCredentialsEntered" method="post">
<input type="hidden" name="_flowExecutionKey" value=""/>
<table>
<tr>
<td>Login Name:</td>
<td><input type="text" name="loginName"/></td>
</tr>
</table>
<input type="submit" value="Login" />
</form>
</body>
</html>
メソッド myActionBean.lookupUser(user) 内で、フォームに入力された user.loginName が渡されていることがわかります。
ただし、ボタンの代わりにリンクを使用してフォームを送信すると
<a href="${flowExecutionUrl}&_eventId=loginCredentialsEntered">Login</a>
user.loginName が null であることがわかります。
理由と回避策を誰か教えてくれませんか
前もって感謝します