Great Thanks Martin, i use now ArrayList :) Tomek -----Ursprüngliche Nachricht----- Von: Martin Sturzenegger [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Januar 2004 13:25 An: Struts Users Mailing List Betreff: AW: sort and iterate
hi, when you read about HashMap it says in the api-description that "...This class makes no guarantees as to the order of the map; in particular, it does not guarantee that the order will remain constant over time..." you might try LinkedHashMap instead. cheers martin ---------- Urspruengliche Nachricht ------------------------------ Von: "Sniadach, Tomasz" <[EMAIL PROTECTED]> Antworten an: "Struts Users Mailing List" <[EMAIL PROTECTED]> Datum: Wed, 21 Jan 2004 11:29:34 +0100 >Hi, >I am new to struts and have a little problem. I iterate a HashMap. When >i do this with Java, then i have elements that are sorted by date (this >make an another method), i mean, i have a sorted Map. When i use the >logic:iterate tag the elements are not sorted. Is there an option to >sort ? > >thx for help >Tomek > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]