tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LANTRES Franck" <Franck.LANT...@fr.renault-sport-f1.com>
Subject xtags:forEach - integer sorting
Date Tue, 11 Oct 2005 07:56:51 GMT
Hi,

In a JSP, I use the xtags:forEach element and I would like to sort
elements in descending order according to an integer value.

If the XML source is :
<foo>
...
<list>
<value>2</value>
<value>4</value>
<value>6</value>
<value>56</value>
</list>
</foo>

And if I write :
<xtags:forEach select="/foo/list" sort="value" ascending="false"/>

The result I get is :
6
56
4
2
But I expect :
56
6
4
2

How can I do that ?

Thanks for your help.

Franck

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


Mime
View raw message