Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display data page vise

 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some data coming from databse and arrange it into jsp
I want facility like 5 data are display on one page then next five are on another page
and so on.

How can i display data in this manner.

Currently i am using for loop for data display in list but it shows all data in same page

So please help me.

Thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64688
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JSP FAQ for an entry on paging long data sets.
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Refer this url : http://en.newinstance.it/2006/09/27/client-side-html-table-pagination-with-javascript/

Just i change the downloaded code the following way:

I store some sample data into Vector instead of database.


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64688
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java code should no longer be placed within a JSP. That's a discredited practice that's over 8 years out of date.
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here. i concentrate only pagination.

I use just sample data(vector) instead of populate the data from database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic