我可以从GET中删除'execution'参数吗?

时间:2011-04-08 11:02:30

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

我用于Spring Webflow。我可以从GET中删除'execution'参数吗?

例如:

http://localhost:8090/myapp/account/register.do?的执行= e1s2

http://localhost:8090/myapp/account/register.do?的执行= e2s12

http://localhost:8090/myapp/account/register.do?的执行= e3s2

1 个答案:

答案 0 :(得分:2)

您可以通过将流量执行程序的always-redirect-on-pause属性设置为false来实现,但不建议使用execution参数导致网址有状态可标记

<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