Sorting numbers using struts display tag?
Is it possible? how is it implem开发者_如何转开发ented?
Late response, but don't forget to pass any number-like datatype to the view. A string will be sorted as a String, simple as that.
By default, displaytag
sorts with full list. Which is basically client-side sort. Where you hand over the full list to displaytag
to display. You just need to set the property i.e. <display:column property="amount" sortable="true" sortName="amount" />
.
For the server-side/partial-list sorting, please refer to external sorting.
精彩评论