Zoran Avtarovski wrote:
I¹m getting an error after uploading a file. Which manifests itself in my
redirect action.
I¹m using a simple post redirect pattern, where the file upload action
redirects to a separate fileList action.
After successfully uploading the file the browser is redirected to the
appropriate action, but Tomcat throws a
³ the request was rejected because its size is unknown ³ exception. If I
call the offending action from the browser it works fine.
Here¹s the relevant snippet from my struts.xml file:
<action name="uploadFile" class="uploadFile">
<result name="input">/WEB-INF/cms/formFile.jsp</result>
<result name="success" type="redirect-action">
<param name="actionName">getFile</param>
<param name="namespace">/cms</param>
</result>
</action>
Any ideas would be appreciated.
Where is the exception thrown? During the first request before the
redirect is sent? Or during the request resulting from the redirect? Is
there any Ajax involved in handling the redirect? Assuming the exception
happens in the redirected request and there's no Ajax, I'd suggest using
LiveHeaders or Firebug in Firefox to examine the headers/body of the
failing request to see if there's something quirky there.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]