Rob, Yes, I have turned off auto-validation and cale validate() explicitly in the Action.
So I map my HttpServletRequest request to a MultipartRequestWrapper and call a getRequest(). But what else do I need to do "..." ? Or is that all? Thanks in advance. Regards, Daniel -----Original Message----- From: Rob Leland [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 3:45 PM To: Struts Users Mailing List Subject: Re: ServletException: Multipart data doesn't start with boundary Daniel If I understand correctly you have the automatic validation turned off and are calling form.validate() your self ? If so you'll need to emulate what the RequestProcessor.java does when the validation fails, which is ActionErrors errors = form.validate(mapping, request); if ((errors != null) && !errors.empty()) { request = ((MultipartRequestWrapper) request).getRequest(); ... } I don't believe the patch will be in RequestProcessor. I need to look at the code better before putting a fix in. -Rob Daniel J. D'Cotta wrote: >Rob, > >I am using Tomcat 4.0.4-B1 with Struts 1.1-B1. > >My problem occurs when there is a validation error my action tries to >forward to another action (with the form) to display the validation >messages. > > >Regards, >Daniel > >-----Original Message----- >From: Rob Leland [mailto:[EMAIL PROTECTED]] >Sent: Thursday, June 27, 2002 10:24 PM >To: Struts Users Mailing List >Subject: Re: ServletException: Multipart data doesn't start with >boundary > > >Try last nights struts build, the patch that I applied suppliaed by Hal >and others may fix your problem. >Also when reporting a problem state the date/version of struts and >conatiner TC 4.0.4 etc.. > > > >For an explination try searching the mail archives for > >'Multipart data doesn't start with' > >http://marc.theaimsgroup.com/?l=struts-user&r=1&w=4 > > >Daniel J. D'Cotta wrote: > >>Hi, >> >>I am using a <form ... enctype="multipart/form-data" method="post"> to >>upload a file. After my latest 'modification' it broke again, now throwing >>the following: >> >>javax.servlet.ServletException: Multipart data doesn't start with boundary >> at >>org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMul t >> >i > >>partRequestHandler.java:103) >> at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:908) >> at >>org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor . >> >j > >>ava:795) >> at >>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:24 4 >> >) > >> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) >> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) >> >>Could someone tell me what is the meaning of this exception? >> >> >>Regards, >>Daniel D'Cotta >> >>Ext: 212 >> >> >>-- >>To unsubscribe, e-mail: >> ><mailto:[EMAIL PROTECTED]> > >>For additional commands, e-mail: >> ><mailto:[EMAIL PROTECTED]> > >> >> > >-- >Robert Leland [EMAIL PROTECTED] >804 N. Kenmore Street +01-703-525-3580 >Arlington VA 22201 > > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- Robert Leland [EMAIL PROTECTED] 804 N. Kenmore Street +01-703-525-3580 Arlington VA 22201 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>