You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/08/26 22:41:33 UTC
DO NOT REPLY [Bug 30876] -
While using File Upload, getting ClassCastException when returning from a FormBean/Action Class
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30876>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30876
While using File Upload, getting ClassCastException when returning from a FormBean/Action Class
Joe@Germuska.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|While using File Upload, |While using File Upload,
|getting ClassCastException |getting ClassCastException
|when returning from a |when returning from a
|FormBean/Action Class |FormBean/Action Class
------- Additional Comments From Joe@Germuska.com 2004-08-26 20:41 -------
Are you sure you're using the full Struts 1.1 release? There was a fix to the RequestProcessor class
during 1.1 development that looks related:
----------------------------
revision 1.11
date: 2002/06/26 18:49:17; author: rleland; state: Exp; lines: +10 -4
Patch for Bug 8792
Submitted by Jens Viebig & Yannic Lamothe to fix.
May have to undo if it gives Tomcat 3.3 users problems ???
java.lang.ClassCastException:
org.apache.struts.upload.MultipartRequestWrapper
the new RequestProcessor Class. It does not unwrap
the Request from the MultipartRequestWrapper
------
This fix came in between Struts 1.1 beta 1 (1.8) and 1.1 beta 2 (1.17)
You must use enctype="multipart/form-data" in your <html:form> tag. I have lots of file uploads
working with more recent versions of Struts, so lets start by making sure you really are using 1.1 final.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org