• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jumpings in Pagination

 
vijaya lakshmi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I am facing a problem while moving pages in pagination. We are using JSP,JSTL.

After displaying first set of resutls in jsp page(1-20).,When I click on next page. It should go to 2nd page and show results(11-20).But instead its jumping to 3rd page and displaying (21-30). some times it jumps 2 pages also..why is it so?What can be reason for this. In TagSupport class we are creating a html document in doStartTag(). Its getting executed twice though we call once..why is it so?Please help in this regard.


Thanks,
Vijaya.

 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're not showing any of your code, so how can we help you?

I would start by looking at the generated HTML page which contains the 'Next Page' link. What does that link do? I assume you are posting to the servlet with a property which specifies the starting point for the set of records. Is this value coded into the HTML correctly?

If not, then have a look at the code which generated this HTML - it's doing it wrong.
If it has the correct value, then look at the servlet that's processing the post request. It's doing something wrong with the value it is receiving.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!