Spring Web Flow Action-State Controller 应该返回什么?看看我下面的流程,我有一个基于对 Controller 的调用的 Action 状态,我可以去 4 个差异路径..
我不知道我必须在 Controller 中进行哪些更改才能传回去向。
下面是我的流程:
<action-state id="checkStatus">
<evaluate expression="flowControllerActions.checkStatus(member)" />
<transition on="NoSSN" to="NoSSN"/>
<transition on="MemberExists" to="endStateMemberExists" />
<transition on="IsDeceased" to="endStateMemberDeceased" />
<transition on="OK" to="address" />
</action-state>
这是我在 Controller 中的方法。有人可以告诉我如何使转换工作:
public String checkStatus(Member member) {
LOGGER.debug("[" + member.toString() + "]");
//
// HOW DO I RETURN??
//
}
最佳答案
你应该能够在你的 Controller 中返回字符串:“NoSSN”,“MemberExists”,“IsDeceased”和“OK”
关于java - Spring Web Flow Action-State Controller 应该返回什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12645654/