[
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.