You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2006/11/18 07:31:57 UTC
[jira] Updated: (STR-1264) Handling parameters from
MultipartRequestWrapper
[ http://issues.apache.org/struts/browse/STR-1264?page=all ]
Paul Benedict updated STR-1264:
-------------------------------
Bugzilla Id: (was: 17583)
Fix Version/s: 1.3.5
(was: 2.0 Family)
Assignee: (was: Struts Developers)
> Handling parameters from MultipartRequestWrapper
> ------------------------------------------------
>
> Key: STR-1264
> URL: http://issues.apache.org/struts/browse/STR-1264
> Project: Struts 1
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.1 Final
> Environment: Operating System: All
> Platform: All
> Reporter: Anton Maslovsky
> Priority: Minor
> Fix For: 1.3.5
>
> Attachments: MultipartRequestWrapper.java, RequestProcessor.java
>
>
> 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?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira