I am using displaytag in my jsp. I am displaying pagewise totals as well as grand totals in the displaytag footer. At the first time, i am able to see the pagewise totals correctly. I could see the correct totals even when i click on any of the page navigation links. The problem is with sorting links. When i click on sort links, the pagewise totals are displayed as grand totals(total of all the records across the pages).