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/08/19 22:55:38 UTC
[jira] Closed: (STR-2344) Separating processPopulate method into
two different methods
[ https://issues.apache.org/struts/browse/STR-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict closed STR-2344.
------------------------------
Resolution: Won't Fix
Assignee: (was: Struts Developers)
This is not possible. Multipart forms come in a different format which requires another kind of decoding.
> Separating processPopulate method into two different methods
> ------------------------------------------------------------
>
> Key: STR-2344
> URL: https://issues.apache.org/struts/browse/STR-2344
> Project: Struts 1
> Issue Type: Improvement
> Components: Extras
> Affects Versions: 1.2.4
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Erdinc Kocaman
> Priority: Minor
>
> I encountered a problem with multipart requests when I am developing a framework
> based on struts. This issue occurs when multipart form used. I need to get a
> parameter value from actionform before processPopulate begins. It is easy when
> not using multipart forms. If multipart forms used, I couldt get that specific
> values until after processPopulate method. But I need it before
> processPopulate() method to init actionform.
> My suggestion is to separate processPopulate so that first function gets all
> information in request object and second function populates bean with this
> request object.
> More specifically, in RequestUtils() function, the lines below should be removed
> and "properties" object returned.
> // Set the corresponding properties of our bean
> try {
> BeanUtils.populate(bean, properties);
> } catch(Exception e) {
> throw new ServletException("BeanUtils.populate", e);
> }
> The variable "properties" above, must be returned and rest of lines must be
> called by a different function.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.