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.

-----Original Message-----
From: Anil Kumar T [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2006 08:11
To: Struts Users Mailing List
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.



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

Reply via email to