tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmk...@earthlink.net (David M. Karr)
Subject Re: select tag in input tag library
Date Sun, 26 Jan 2003 21:57:20 GMT
>>>>> "Kishi" == Kishi Mikio <mkishi@104.net> 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++
dmkarr@earthlink.net   ; SCJP; SCWCD




--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message