2014-07-07 23 views
0

我们的应用程序在Tomcat 6,Jdk 7和Spring 3.0上运行平稳。最近我们升级到tomcat 7并开始看到奇怪的行为。 有用于上传某些excel文件的上传按钮的页。 它的工作方式是,我点击浏览按钮,选择文件,然后点击上传。 我们升级到tomcat 7后,当我点击上传时,页面抛出异常。 原因:流执行密钥为空。 (它是空的不是null) 调试到春季代码,这行春季webflow中流程执行键为空,用于多部分请求 - Tomcat 7

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

我得到空字符串。

虽然我可以看到URL作为

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> 

其他页面都工作正常。

任何想法这里发生了什么?这是因为多部分请求的问题吗?

回答

1

变化

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

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

参数名称 “flowExecutionKey” 是从SWF 2.0

改变为 “执行”