Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.2.4
-
None
-
None
-
Operating System: Windows XP
Platform: PC
-
33247
Description
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
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.