有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

SpringWebFlow中actionstate中多个求值表达式的java问题

我有一个动作状态,需要执行两个求值表达式,其中两个表达式都将返回相应的bean。我的问题是在我的操作状态下,在下面的代码中只有一个求值表达式在执行

<action-state id="confirmState">
    <evaluate expression="myController.getConfirmPage(flowRequestContext,conversationScope.studentTypeBean)" result="conversationScope.studentTypeBean"/>
    <evaluate expression="myPageController.getHomePage(flowRequestContext)" result="conversationScope.studentBean"    />
    <transition to="studentConfirm"></transition>         
</action-state>

一些教程说,要执行多个求值表达式,第一个表达式需要返回true,才能执行第二个表达式,这是真的吗?但在我的例子中,我想返回一个bean,而不是布尔值。我怎样才能解决这个问题


共 (0) 个答案