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=32614>.
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=32614

           Summary: Change the properties HashMap of the
                    RequestUtils.populate method to a LinkedHashMap
           Product: Commons
           Version: 4.0
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: major
          Priority: P2
         Component: Bean Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The populate method of org.apache.struts.util.RequestUtils with the following
signature

public static void populate(
Object bean,
String prefix,
String suffix, 
HttpServletRequest request)
throws ServletException {
..
}

uses a "properties" HashMap for storing request parameters passed in from an 
HTTP request.

Please change this to an java.util.LinkedHashMap so that the
order of the parameters (when posted through an HTML form) is retained. 
The "properties" map is eventually passed to the BeanUtils.populate(...) 
method. Since this method calls indexed setter/getter methods in the order of 
the entries in the map passed to it. It only makes sense to have this order
in line with whats submitted. 

Not doing so, is causing erratic behavior when dealing with indexed properties
in Struts.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to