tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (David M. Karr)
Subject Re: select tag in input tag library
Date Sun, 26 Jan 2003 21:57:20 GMT
>>>>> "Kishi" == Kishi Mikio <> writes:

    Kishi> Hi,
    Kishi> I have a question about select tag in input tag library.
    Kishi> Although Map is used as options,
    Kishi> is it possible to print out options "in the order of adding option in Map" ?
    Kishi> In case of using HashMap or TreeMap, it is impossible....

The key is to use a HashMap implementation that returns entries in a specific
order, the insertion order, in particular.  If you use the
"Commons-Collections" library, you'll find the "SequencedHashMap" class, which
will do exactly that.

David M. Karr          ; Java/J2EE/XML/Unix/C++   ; SCJP; SCWCD

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message