struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@attws.com>
Subject RE: html:options ordering
Date Wed, 30 Oct 2002 18:53:41 GMT
> -----Original Message-----
> From: Dennis Muhlestein [mailto:dennis@zserve.com]
> Sent: Wednesday, October 30, 2002 9:41 AM
> 
> I have a hashtable with key/value that get displayed by an 
> html:options
> tag.  
> 
> Works ok, but they are ordered in reverse order of the id.  That isn't
> any performance problem, but it looks a little strange to the user.
> 
> For instance, what if you wanted the options in alphabetical 
> order?  In
> my case, I need them ordered by the key for each options.

I would look into the Commons Collections library.  It appears you could use
either the DoubleOrderedMap or the SequencedHashMap.  I haven't personally
used either of these.

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


Mime
View raw message