这个问题分为两部分
- 是否可以为 Spring Web Flow 提供路径变量?
- 是否可以隐藏URL中的执行键
当前网址如下:http://localhost/bugs/ticket/?execution=e2s1
此处,关联的 Web 流位置模式为 <flow:flow-location-pattern value="/**/flow.xml" />
其中文件夹结构为:bugs/ticket/flow.xml
是否可以在 URL 本身中提供票证 ID 并指向适当的流 - 即 URL 应该http://localhost/bugs/ticket/102?execution=e2s1
,但流仍然取自bugs/ticket/flow.xml
我尝试使用以下模式 - value="/**/*/flow.xml"
、flow-path id="bugs/ticket/*"
等,但无济于事。
另外,是否可以在URL中隐藏执行密钥?是否可以通过可以在Spring Web Flow上拉入的HTTP标头发送它?
这并不能回答您的所有问题
这就是我将参数发送到流中的方式
外部页面
<a href="<c:url value='/flowpage?uid=${variable1.field}'/>">Enter Flow</a>
流
<view-state>
<on-entry>
<set name="variable2.field" value="requestParameters.uid"/>
</on-entry>
</view-state>