Display Tag JSP Sorting Issue

Posted on 2009-12-30
Last Modified: 2013-11-24
I'm using the JSP Display tag library (website is I have pagesize set to 30.  I have a total of 280 records.  Therefore, the tables displayed have pagination (Next page, first, previous, 1, 2, 3, etc.).  I have sorting enabled.  The problem is that sorting is performed on a per page basis.  

One of the users  would like to see sorting on ALL records WITH pagination.  That is sort all records when click on column.  When click Next page, sorting order is maintained.

Any ideas from Display Tag users?
Question by:lcor
    LVL 22

    Accepted Solution

    check this example, I guess this has what you are looking out for.
    using sort="list"

    see the view source.
    LVL 6

    Expert Comment

    sort all the records using SQL and then select required records using ROWNUM in oracle

    Author Closing Comment

    this solution works!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now