【问题标题】:Spring Web Flow PathVariableSpring Web 流路径变量
【发布时间】:2013-11-20 09:02:53
【问题描述】:

这个问题分为两部分

  • 是否可以为 Spring Web Flow 提供路径变量?
  • 是否可以在 URL 中隐藏执行键

当前网址如下:http://localhost/bugs/ticket/?execution=e2s1

在这里,关联的 Web Flow 位置模式是 <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 标头发送它?

【问题讨论】:

    标签: spring-webflow path-variables


    【解决方案1】:

    这并不能回答你所有的问题

    这就是我将参数发送到流中的方式

    外部页面

    <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>
    

    【讨论】:

      猜你喜欢
      • 2015-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-15
      • 2015-05-03
      • 2017-06-15
      相关资源
      最近更新 更多