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 2003/04/02 09:17:55 UTC

DO NOT REPLY [Bug 18598] New: - Multipart parameters not passed between actions

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=18598>.
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=18598

Multipart parameters not passed between actions

           Summary: Multipart parameters not passed between actions
           Product: Struts
           Version: 1.1 Beta 3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: nick.daniau@shepwaydc.gov.uk


Hi,

I have an action with a JSP. The form contains a normal field (ID) and a 
multipart field (File upload). When the processing of this ID/File fails, the 
action forwards the user to the same JSP with an error message. In this case 
the parameter ID is kept correctly.

When the processing succeeds, the action forwards to another action:
  <forward name="index" path="/index.do" />
This action uses an action form which is a superclass of the other form, and it 
shares a number of properties, one of them is ID. Unfortunately the ID value is 
not passed to this index action (I log the action form content first thing when 
I reach IndexAction.execute).

If I remove enctype="multipart/form-data" from the JSP (and the reference to 
<html:file>) it does what I want, i.e. the ID value entered on the JSP is 
passed correctly to the index action.

I believe this is a bug from 1.1 B3 but I couldn't find any reference on 
bugzilla for a possible correction in RC1. The only entry I found that could 
possibly relate to this problem was 17583 but I was not 100%. Could you please 
check this?

Thanks

Nicolas Daniau

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org