我可以从GET中删除"execution"参数吗? [英] Can I get remove of the 'execution' parameter from GET?

查看:96
本文介绍了我可以从GET中删除"execution"参数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我习惯于Spring Webflow.我可以从GET中删除执行"参数吗?

I use to Spring Webflow. Can I get remove of the 'execution' parameter from 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

推荐答案

您可以通过将flow executor的always-redirect-on-pause属性设置为false来做到这一点,但是不建议-execution参数导致url为状态可标记.

You can do it by setting always-redirect-on-pause attribute of flow executor to false, but it is not recommended - execution parameter causes that url is stateful and bookmarkable.

<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

这篇关于我可以从GET中删除"execution"参数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆