Data Sorting in JSP

Discussions

General J2EE: Data Sorting in JSP

  1. Data Sorting in JSP (1 messages)

    I am building a struts app that has the requirement of showing data in a table that contains some sortable columns.
    The data is retrieve from database. By clicking on a column, the page will show data sorted by that column.
    What are the best practices for handling sorting of data.

    Threaded Messages (1)

  2. re: Data Sorting in JSP[ Go to top ]

    Well,

    I think you should use a tag lib that was mentioned on this site a few weeks ago called display tag and it's available at http://www.displaytag.org.

    Works well with struts and easily handles data sorting and pagination of result sets.

    Diarmuid