You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stefano Mancarella <ma...@opoipi.bancaintesa.it> on 2001/11/26 15:28:57 UTC

How to iterate in reverse order

Is there a way to use <logic:iterate> to traverse a collection in reverse
order?
ATM the only way I can achieve this is via a scriptlet.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to iterate in reverse order

Posted by Renaud Waldura <re...@waldura.org>.
How about making your bean return a reversed collection?
Collections.reverse() is your friend.



----- Original Message -----
From: "Stefano Mancarella" <ma...@opoipi.bancaintesa.it>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, November 26, 2001 6:28 AM
Subject: How to iterate in reverse order


> Is there a way to use <logic:iterate> to traverse a collection in reverse
> order?
> ATM the only way I can achieve this is via a scriptlet.
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>