| Author |
display data page vise
|
kavita vala
Ranch Hand
Joined: Jul 22, 2010
Posts: 42
|
|
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
Joined: Jan 10, 2002
Posts: 56529
|
|
|
See the JSP FAQ for an entry on paging long data sets.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Eswar Nec
Ranch Hand
Joined: May 02, 2010
Posts: 105
|
|
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.
|
Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
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
Joined: May 02, 2010
Posts: 105
|
|
Here. i concentrate only pagination.
I use just sample data(vector) instead of populate the data from database.
|
 |
 |
|
|
subject: display data page vise
|
|
|