Why display tag pagination doesn't use partial list?

后端 未结 3 1810
一个人的身影
一个人的身影 2020-12-01 05:49

In display tag I used pagination feature, when I want to see the list of 15 rows but display tag fetches all the rows from database. Every time when i click on pagination nu

3条回答
  •  不思量自难忘°
    2020-12-01 06:34

    Displaytag sends it’s pagination and sorting data using parameters that start with “d-”. So quick solution can be to check if request contains something starting with "d-",if yes then dont execute your query again.

提交回复
热议问题