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. If you want an example with some source code on this you can check out: "see it in action" -> "General Widgets" -> "SortableTable" ...on that same website. Best of luck... Akshay On 7/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
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 : +61-0411-354-838 "Anil Kumar T" <[EMAIL PROTECTED]> 14/07/2006 05:11 PM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" <user@struts.apache.org> cc: Subject: Dynamic Sort depending on the field requested by user. Hi Group, 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 provide the sort order as per user request. He can request the sort order on any field. Can any one know how to achieve this with struts? Any help, links would be appreciated highly. Thanks in advance, Anil. Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at [EMAIL PROTECTED] and delete this email from your records. _____________________________________________________________________ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com ********************************************************************************* Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA. Thank you. **********************************************************************************