简体   繁体   English

Spring Webflow中针对多部分请求的流执行密钥为空-Tomcat 7

[英]Flow execution key is empty in spring webflow for multipart request - Tomcat 7

Our application has been running smoothly on Tomcat 6 , Jdk 7 and Spring 3.0. 我们的应用程序已在Tomcat 6,Jdk 7和Spring 3.0上顺利运行。 recently we upgraded to tomcat 7 and have started seeing strange behaviour. 最近,我们升级到了tomcat 7,并开始看到奇怪的行为。 There is page which has upload button which is used to upload certain excel files. 有一个页面有上传按钮,用于上传某些excel文件。 The way it works is that I click on browse button , select file and click on Upload. 它的工作方式是我单击浏览按钮,选择文件,然后单击上载。 After our upgrade to tomcat 7, when i click on Upload, the page is throwing exception. 升级到tomcat 7之后,当我单击“上载”时,该页面将引发异常。 Reason : flowexecution key is empty. 原因:flowexecution键为空。 (it is empty not null) Debugging through spring code, at this line (它为空而不是null)在这一行通过spring代码进行调试

org.springframework.webflow.context.servlet.DefaultFlowUrlHandler#getFlowExecutionKey("execution")

I get empty string. 我得到空字符串。

Although I can see the url as 虽然我可以看到网址为

http://myapplication/admin/flows/fileUploadList-flow?execution=e5s7

This is my jsp page 这是我的jsp页面

<form:form commandName="model" name="model" method="post" enctype="multipart/form-data" 
action="${actionPath}">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}"/>
----
---
</form>

The other pages are working fine. 其他页面工作正常。

Any idea what is going on here ? 知道这里发生了什么吗? Is this problem because of multipart request ? 这是由于多部分请求引起的吗?

Change 更改

    <input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}"/>

to

    <input type="hidden" name="execution" value="${flowExecutionKey}"/>

Parameter name "flowExecutionKey" is changed to "execution" from SWF 2.0 参数名称“ flowExecutionKey”从SWF 2.0更改为“执行”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM