[ http://issues.apache.org/struts/browse/STR-2921?page=all ]

Paul Benedict updated STR-2921:
-------------------------------

    Component/s: Core

> Struts: empty ActionForm after failed validation on a MultiPartRequest
> ----------------------------------------------------------------------
>
>                 Key: STR-2921
>                 URL: http://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.
-
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

        

Reply via email to