You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anil Kumar T <an...@infics.com> on 2006/07/14 09:11:27 UTC

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 info.in@infics.com and delete this email from your records.

Re: Dynamic Sort depending on the field requested by user.

Posted by Antonio Petrelli <br...@tariffenet.it>.
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 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.
>   

Mmm... I think that DisplayTag can help you:
http://displaytag.sourceforge.net/
Ciao
Antonio


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Dynamic Sort depending on the field requested by user.

Posted by Lance <la...@marketpipe.com>.
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:anilkumart@infics.com] 
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
info.in@infics.com and delete this email from your records.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org