Thats a pretty dirty workaround if your multipart request contained a 5MB file being uploaded. Or what occurs in that case (when the browser makes the new request)?
Rob Adam P. Jenkins wrote: > I believe another workaround is to set the redirect attribute on the forward > to true. E.g. the action config for ActionOne would have a local forward > like this: > > <forward name="nextaction" path="/action2.do" redirect="true"/> > > Then in ActionOne, when you return mapping.findForward("nextaction"), this > will cause the struts to send a redirect header to the browser telling it to > make a new request for action2. This works fine unless you really wanted > ActionTwo to have access to the same request attributes and parameters as > ActionOne. > > Adam > > On Thursday 18 April 2002 08:47 am, rob wrote: > >>It's been this way since struts 1.0 (and likely prior to) but http >>requests carrying multipart/form-data posts result in an exception being >>thrown if forwarded through more than one action. >> >>(e.g request flow) >> >>1 - submit multipart/form-data request (with at least one file input) >> request is forwarded to ActionOne. >>2 - ActionOne handles multipart data, writes a file to disk does >> something with other parameters etc. then forwards to ActionTwo. >>3 - Exception is thrown. >> >>This occurs in the following versions I've tested 1.0.x, 1.1-b1. Copies >>of the exceptions follow this post. >> >>Workaround, never forward to a second action, always forward to a .jsp >>which must be the end point for the request after the first action. >>(This kind of sucks). >> >>If this is a bug then consider it submitted, if it's designed this way >>then how about changing it? (pretty please?) >> >>Thanks >> >>Rob > > > -- > 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]>