fea jabi wrote:
for sorting the data in the list in the auto-sorting there is a statement

If you want to allow the user to sort the data as it is coming back, then you need to just do two things, make sure that the data returned from your property implements the Comparable interface (if it doesn't natively - use the decorator pattern as shown a couple of examples ago), and then set the attribute sortable="true" on the columns that you want to be able to sort by.

How to do this i.e using of Comaparable interface?
The list I used is of type Form1 which has attribites
name - String
type - String
status - String
date - Date

My list is an ArrayList of type Form1 which I am trying to display in the JSP tabe using display tag.

DisplayTag has its own mailing lists; that would be a more appropriate place to ask questions about its use. If what follows doesn't help, try following up there.

String and Date are already comparable (i.e. they already implement the Comparable interface) so, unless you want to apply a custom sort order, you don't need to do anything special to meet the requirement you quoted.

L.


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

Reply via email to