是否有任何propety或選項來排序邏輯迭代值?邏輯迭代排序選項
例如,我有一個邏輯迭代這樣的:
<logic:iterate name="testForm" property="rows" id="row" type="com.mam.dto.TestDTO">
<td class="formListLabelStyle"><bean:write name="row" property="customerLastName"/></td>
<td class="formListLabelStyle"><bean:write name="row" property="category"/></td>
</logic:iterate>
對於這個輸出會在降序。在這裏我需要按照降序排序。請幫助我。
甚至更好,使用'TreeSet'這樣的排序集合。 – Viruzzo 2012-01-11 13:56:42