DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15033>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15033

Forwarding after "File Upload"

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2002-12-04 04:55 -------
This is just one reason that action chaining is a bad idea. ;-}

The problem is that forwarding to another action causes the request to be re-
parsed. In the case of a multipart/form-data request, the request data, in the 
form of an input stream, has already been consumed, and is therefore not 
available to be parsed again in the second action.

This really isn't a Struts issue. It is a consequence of the way the servlet 
spec RequestDispatcher works. Forwarding to a JSP page, as you discovered, is 
one way around this issue - as long as the JSP page does not attempt to access 
request parameters directly. Another alternative is to mark your forward 
as 'redirect="true"', to cause a redirect instead of a regular forward.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to