This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes display data page vise Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "display data page vise" Watch "display data page vise" New topic
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: 60785
    
  65

See the JSP FAQ for an entry on paging long data sets.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 60785
    
  65

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display data page vise
 
Similar Threads
How to use struts to display initial data in JSP
servlet-jdbc
vector
Pagination
fow to forward to an action from jsp ?