My Action class has a method getCars() that returns a collection of Car objects.
The Car class has a method getMake(), along with several others.
I'd like to output a sorted table of the cars in my JSP, sorted on the make.
Here's what I tried.
<table>
<webwork:bean name="'webwork.util.Sorter'" id="sorter"/>
<iterator:sort source="cars" comparator="@sorter/ascending('make')">
<webwork:iterator>
<tr>
<td><webwork:property value="make"/></td>
... other properties output here ...
</tr>
</webwork:iterator>
</iterator:sort>
</table>
I get a ClassCastException from webwork.util.MakeIterator.
I'm pretty sure it doesn't like the source attribute on the iterator:sort tag.
Can someone speculate as to what I'm doing wrong?
***********************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
************************************************************************************
