ng on the field requested by user.
For arrays, use java.util.Arrays.sort(Object[], java.util.Comparator)
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: 17 July 2006 13:57
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user
2006 13:57
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.
Ok... chances are your form has a java.util.List that you want sorted. You
can use java.util.Collections.sort(java.util.List, java.util.Comparator)
I think commons-collections
Anil Kumar T ha scritto:
I have a requirement like I need to display a list containing Name,
Date, Department, Last update etc., after displaying the list the user
can select any field to sort the list display, but it should not query
again, only with the first time result we should be able to pr
For arrays, use java.util.Arrays.sort(Object[], java.util.Comparator)
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: 17 July 2006 13:57
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.
Ok... chances are your
java.util.Comparator too.
-Original Message-
From: Anil Kumar T [mailto:[EMAIL PROTECTED]
Sent: 17 July 2006 13:45
To: Struts Users Mailing List
Subject: RE: Dynamic Sort depending on the field requested by user.
But I need the dynamic sort logic ?
Anil.
-Original Message-
From
But I need the dynamic sort logic ?
Anil.
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 6:11 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.
I don't store the sort column,
: Lance [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 4:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.
I do this with 2 actions which use the same form which has a scope of
"session". The first (retrieve) action hi
lto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 4:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Sort depending on the field requested by user.
I do this with 2 actions which use the same form which has a scope of
"session". The first (retrieve) action hits the db an
I do this with 2 actions which use the same form which has a scope of
"session". The first (retrieve) action hits the db and populates a form. The
second (sort) action just sorts the form (retrieved from the session). On
your html table, the column headings link to your "sort" action.
-Origina
Hi Anil,
I have a similar section of a project that I am working on. I am using AJAX
DOJO for the sorting. It is working for me great so far.
If you go to www.dojotoolkit.org and download the scripts...They have a
sortable table widget that you can wrap around any table. It is very simple
to use
Sorting is purely Java logic. I dont think Struts has anything with
sorting logic.
You can use Java comparators to do the job easily rather than you
programming it.
Thanks and regards,
Pazhanikanthan. P (Paz)
Consultant for AXA,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +6
11 matches
Mail list logo