You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ch...@bankone.com on 2003/10/23 16:25:59 UTC

[PATCH] Error in CommonsMultipartRequestHandler when using html:file

I was getting a NoSuchMethodError when using the html:file tag in
struts1.1.  I found that the original code was calling setSizeMax from
commons-fileupload as follows: upload.setSizeMax((int)getSizeMax(ac));
setSizeMax expects a long and getSizeMax returns a long so i changed the
code to this: upload.setSizeMax(getSizeMax(ac));

(See attached file: CommonsMultipartRequestHandler-PATCH.txt)

This is the first time I have submitted anything so let me know if I didn't
do it right.

Thanks,
Chad


This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.