You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/12/09 22:51:10 UTC
DO NOT REPLY [Bug 32614] New: -
Change the properties HashMap of the RequestUtils.populate method to a LinkedHashMap
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: commons-dev@jakarta.apache.org
ReportedBy: apota@dmotorworks.com
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org