This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Jumpings in Pagination

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
crispy bacon. crispy tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic