[英]Flow execution key is empty in spring webflow for multipart request - Tomcat 7
我们的应用程序已在Tomcat 6,Jdk 7和Spring 3.0上顺利运行。 最近,我们升级到了tomcat 7,并开始看到奇怪的行为。 有一个页面有上传按钮,用于上传某些excel文件。 它的工作方式是我单击浏览按钮,选择文件,然后单击上载。 升级到tomcat 7之后,当我单击“上载”时,该页面将引发异常。 原因:flowexecution键为空。 (它为空而不是null)在这一行通过spring代码进行调试
org.springframework.webflow.context.servlet.DefaultFlowUrlHandler#getFlowExecutionKey("execution")
我得到空字符串。
虽然我可以看到网址为
http://myapplication/admin/flows/fileUploadList-flow?execution=e5s7
这是我的jsp页面
<form:form commandName="model" name="model" method="post" enctype="multipart/form-data"
action="${actionPath}">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}"/>
----
---
</form>
其他页面工作正常。
知道这里发生了什么吗? 这是由于多部分请求引起的吗?
更改
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}"/>
至
<input type="hidden" name="execution" value="${flowExecutionKey}"/>
参数名称“ flowExecutionKey”从SWF 2.0更改为“执行”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.