You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/01/26 16:01:38 UTC
DO NOT REPLY [Bug 33247] New: -
Separating processPopulate method into two different methods
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33247>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33247
Summary: Separating processPopulate method into two different
methods
Product: Struts
Version: 1.2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Standard Actions
AssignedTo: dev@struts.apache.org
ReportedBy: kocamane@hotmail.com
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.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org