• Post Reply Bookmark Topic Watch Topic
  • New Topic

pagination for forEach of JSTL List

 
prakash nampelly
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to get with following code snippet, I am getting the list but pagination is not working. Anybody please look into my code and suggest me the changes.

Thanks in Advance
Prakash
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question #1: Why are you using both scriptlets and JSTL in the same page? Use one or the other.

Question #2: What is the page supposed to do? You say that it's not working, but not what it's supposed to do. Few people are going to wade through all your code to try and figure that out.
 
prakash nampelly
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It supposed to do fetch number of records and that records to be shown like 10 per page. When user clicks 2nd page he has to get 10 more records in the list.

Currently it showing all the records on a single page but that needs to be limited to few numbers whatever required.

Hope this clears.

Prakash
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a JSP FAQ entry that covers this very issue.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!