Sorry for previous mail that I send .
ArrayList is ordered And hashMap is not ..
 
Adding the errors to hashmap results in unorder ..    
 
Suhas
 
----- Original Message -----
From: suhas
Sent: Wednesday, July 12, 2000 12:17 PM
Subject: Re: ordering validations

Hope it is ArrayList as against HashMap
    The errors are added to hashmap as errors.add(propertykey , ArrayListofActionError) )
ArrayList is all unordered I think !!!!
----- Original Message -----
Sent: Thursday, July 12, 2001 7:33 AM
Subject: SV: ordering validations

As you can see from the source code, the errors are placed in an unordered Collection (a map i presume, cant remember)....so they will come out unordered...
 
I wish the devs would change this....
 
Mikkel
-----Oprindelig meddelelse-----
Fra: cahana [mailto:[EMAIL PROTECTED]]
Sendt: 12 July 2001 01:53
Til: [EMAIL PROTECTED]
Emne: ordering validations

Does anyone know how to order the way the validation errors show up?  When the validate method of my ActionForm gets called and there are multiple errors, the order that the errors are displayed on the jsp is not the order in which I added them to ActionErrors.
 
cameron

Reply via email to