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 2007/11/15 07:23:33 UTC
[jira] Closed: (STR-2921) Struts: empty ActionForm after failed
validation on a MultiPartRequest
[ https://issues.apache.org/struts/browse/STR-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict closed STR-2921.
------------------------------
Resolution: Duplicate
> Struts: empty ActionForm after failed validation on a MultiPartRequest
> ----------------------------------------------------------------------
>
> Key: STR-2921
> URL: https://issues.apache.org/struts/browse/STR-2921
> Project: Struts 1
> Issue Type: Bug
> Components: Core
> Reporter: Pedro Boado
> Priority: Trivial
>
> Working with Struts 1.1 I got into a strange situation: when you post a "multipart/form-data" with "" elements and the validate() method of the ActionForm fails, you are forwarded to the InputMapping specified into the "struts-config.xml" file, while Struts logs the message " Rolling Back Multipart Request ".
> Struts documentation says that Rollback sets to null ActionForm's FormFile objects . But, my ActionForm arrives totally empty to the forwarded Action, as is a reset() operation were performed.
> What did I do? I made a clone() to the ActionForm when I checked if there were errors in the validate() method, I attached the clone into the request object and retrieved it while processing the InputMapping's Action, and then I filled up the current ActionForm.
> P.D. : Sorry for my bad English
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.