See the Posting from Yannic Lamothe in struts-user: --------------->> Hi,
I'm using the latest nightly build from struts (1.1) and I'm experiencing some issues with file upload. The validation of the form performs well, but when the forward is called to display the next page, I've got the following exception. java.lang.ClassCastException: org.apache.struts.upload.MultipartRequestWrapper at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatch erImpl.java:172) ... <<--------------------- I got the same Error with the struts-upload example using struts 1.1b. Thanks to Yannick for sending me a fix for that Problem. We like to share that fix with the community (See attachement). It seems to be a bug in the new RequestProcessor Class. It does not unwrap the Request from the MultipartRequestWrapper. Greetings Jens Viebig
--- RequestProcessor.java.orig Sun Apr 14 12:44:49 2002 +++ RequestProcessor.java Sun Apr 14 12:42:41 2002 @@ -962,6 +962,11 @@ HttpServletResponse response) throws IOException, ServletException { + //unwrap the multipart request if there is one + if (request instanceof MultipartRequestWrapper) { + request = ((MultipartRequestWrapper) request).getRequest(); + } + RequestDispatcher rd = getServletContext().getRequestDispatcher(uri); if (rd == null) { response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>