2014-07-07 20 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

改變爲 「執行」