【问题标题】:Can I get remove of the 'execution' parameter from GET?我可以从 GET 中删除“执行”参数吗?
【发布时间】:2011-04-08 11:02:29
【问题描述】:

我使用 Spring Webflow。我可以从 GET 中删除“执行”参数吗?

例如:

http://localhost:8090/myapp/account/register.do?execution=e1s2

http://localhost:8090/myapp/account/register.do?execution=e2s12

http://localhost:8090/myapp/account/register.do?execution=e3s2

【问题讨论】:

  • 真的可以收藏吗?我的理解是流程执行与会话相关联,因此一旦会话到期,流程将不再可访问,从而破坏了用户的书签。

标签: java spring model-view-controller spring-webflow


【解决方案1】:

可以通过将flow executor的always-redirect-on-pause属性设置为false来实现,但不推荐——execution参数导致url是statefulbookmarkable强>.

<webflow:flow-executor id="flowExecutor" >
    ...
    <webflow:flow-execution-attributes>
        <!-- without execution param -->
        <webflow:always-redirect-on-pause value="false"/>
    </webflow:flow-execution-attributes>
</webflow:flow-executor>

这个网址可能有用:http://www.ervacon.com/products/swf/tips/tip4.html

【讨论】:

  • 谢谢老哥帮了大忙。
猜你喜欢
  • 2018-07-26
  • 2016-09-18
  • 1970-01-01
  • 2023-03-29
  • 2022-12-07
  • 1970-01-01
  • 1970-01-01
  • 2010-09-25
  • 1970-01-01
相关资源
最近更新 更多