struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17583] New: - Handling parameters from MultipartRequestWrapper
Date Mon, 03 Mar 2003 10:00:48 GMT
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=17583>.
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=17583

Handling parameters from MultipartRequestWrapper

           Summary: Handling parameters from MultipartRequestWrapper
           Product: Struts
           Version: 1.1 RC1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: maslovsky@mail.ru


Struts <bean:parameter> tag cannot lookup parameters submitted as a part of 
multi-part request. This causes problems in the following schenario:

1. We have a JSP page containing a multi-part (aka upload) form
2. The form has some input fields other than FormFile
3. We have some <bean:parameter> tags, which lookup parameters from the request
4. When user submits the form and it fails validation, request will be 
redirected to the input, but all input parameters are only contained in 
MultipartRequestWrapper. All the parameters are lost in 
RequestProcessor.doForward(), when it unwrappes the request.

So we end up with different behaviour for normal forms and multi-part forms. 
With normal forms we have all form fields available as request parameters when 
form is redisplayed after validation fails. With multi-part forms there is no 
sych mapping.

Actualy, I'm not sure if this is a designed behaviour or not, so this bug may 
be changed to an enhancement?

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


Mime
View raw message