I've created specific iterators (classes that implement iterator interface)
that do the sorting for you.  So you can ask an object to give you an
iterator, or an orderedIterator, or a reverseIterator etc.  You then refer
to this property from the <logic:iterate> tag.

Tim.

> -----Original Message-----
> From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 9:48 PM
> To: 'Struts Users Mailing List'
> Subject: RE: sorting in logic:iterate
>
>
> As far as I know you have to sort the arraylist on the action class before
> forward to JSP page.
>
> logic:iterate is the View. You have to sort on the Model.
>
>
> -----Original Message-----
> From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 3:42 PM
> To: Struts Group (E-mail)
> Subject: sorting in logic:iterate
>
>
> Hi,
> I am using logic:iterate to display values from an arraylist of beans.
>
> Is it possible to sort the output based on some bean property?
>
> Thnx,
> GB
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to