RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-08 Thread Sandeep Takhar
kup time, and HashMaps are noted > to be quite heavy when it > > comes to memory use so Id say the TreeMap is a > better choice. :-) > > > > -Original Message- > > From: O_Parthasarathy Kesavaraj > [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, 8 July 200

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-08 Thread Kris Schneider
> -Original Message- > From: O_Parthasarathy Kesavaraj [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 8 July 2003 13:48 > To: 'Struts Users Mailing List' > Subject: RE: Urgent!!!Sorting Problem while loading from HashMap > > > Thanks Navjot and Andrew

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-07 Thread Andrew Hill
y, 8 July 2003 13:48 To: 'Struts Users Mailing List' Subject: RE: Urgent!!!Sorting Problem while loading from HashMap Thanks Navjot and Andrew.. Meanwhile i tried to convert it to TreeMap.It is working fine..But Andrew.. what is the difference between TreeMap and SequencedHashMap b'

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-07 Thread O_Parthasarathy Kesavaraj
w Hill[SMTP:[EMAIL PROTECTED] > Reply To: Struts Users Mailing List > Sent: Tuesday, July 08, 2003 10:45 AM > To: Struts Users Mailing List > Subject: RE: Urgent!!!Sorting Problem while loading from HashMap > > HashMaps will rearrange stuff internally and wil

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-07 Thread Andrew Hill
/collections/api/org/apache/commons/collect ions/SequencedHashMap.html -Original Message- From: O_Parthasarathy Kesavaraj [mailto:[EMAIL PROTECTED] Sent: Tuesday, 8 July 2003 13:17 To: 'Struts Users Mailing List' Subject: Urgent!!!Sorting Problem while loading from HashMap Hi I am

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-07 Thread Navjot Singh
-navjot |-Original Message- |From: O_Parthasarathy Kesavaraj [mailto:[EMAIL PROTECTED] |Sent: Tuesday, July 08, 2003 10:47 AM |To: 'Struts Users Mailing List' |Subject: Urgent!!!Sorting Problem while loading from HashMap | | |Hi |I am loading a html:select box with property as the

Urgent!!!Sorting Problem while loading from HashMap

2003-07-07 Thread O_Parthasarathy Kesavaraj
Hi I am loading a html:select box with property as the key in the HashMap( ID corresponding to the value which is displayed) and labelproperty as the value.When i am fetching from the database i am sorting by the value and then only loading in the HashMap.But when i see the select box the val