struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Siggelkow <>
Subject Re: [OT] How to sort with <c:forEach>?
Date Wed, 08 Sep 2004 17:23:18 GMT
Do it in the business layer that fetches the collection -- or in the 
database -- or store the data in a sorted collection (like SortedTreeMap 
or some similar animal).

Craig Dickson wrote:

> Hi,
> Is there an easy way to have the JSTL forEach tag sort the collection of
> items before looping through them? Currently I have a scriptlet doing it
> before the loop tag, but this is pretty ugly.
> Thanks

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

View raw message