You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ni...@apache.org on 2006/03/09 05:17:18 UTC

svn commit: r384422 - /struts/action/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/RequestUtils.java

Author: niallp
Date: Wed Mar  8 20:17:18 2006
New Revision: 384422

URL: http://svn.apache.org/viewcvs?rev=384422&view=rev
Log:
Set the MultipartRequestHandler if max file size is exceeded - corrects change made for Bug 38534

Modified:
    struts/action/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/RequestUtils.java

Modified: struts/action/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/RequestUtils.java
URL: http://svn.apache.org/viewcvs/struts/action/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/RequestUtils.java?rev=384422&r1=384421&r2=384422&view=diff
==============================================================================
--- struts/action/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/RequestUtils.java (original)
+++ struts/action/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/RequestUtils.java Wed Mar  8 20:17:18 2006
@@ -445,6 +445,7 @@
                         (Boolean) request.getAttribute(
                                 MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
                 if ((maxLengthExceeded != null) && (maxLengthExceeded.booleanValue())) {
+                    ((ActionForm) bean).setMultipartRequestHandler(multipartHandler);
                     return;
                 }
                 //retrieve form values and put into properties



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org