【发布时间】:2011-03-28 22:10:14
【问题描述】:
我不确定这在 webflow 2.2.1 中是否可行
flow.xml
<view-state id="flowId1" model="flowModel1" view="/WEB-INF/templates/Flow_Form/form1.jsp">
<set attribute="strVar" value="${'someStringVar'}" />
<transition on="step1" to="step1Action" />
</view-state>
jsp
<h1>${strVar}</h1>
基本上,我想分配一个 String var,它会在 flow.xml 中设置的各个视图状态中更改值。
还有其他简单的推荐方法吗?
谢谢
【问题讨论】: