Posted: Thu Aug 14, 2008 5:02 pm Post subject: Sorted HashMap in java
I have a long list of records that returned from the database & place this resultset in a HashMap. Now I am using this HashMap to create a DropDown box options on the JSP. I want that the DropDown Box display these options in sorted manner.
How can I sort that HashMap? my resultset returned from database is in sorted ordered , but it get unsorted when I place this in HashMap.