This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Showing long list Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Showing long list" Watch "Showing long list" New topic
Author

Showing long list

Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
Hi all,
I am creating a small app. I have about 100 Books in my List .I don't want to show all on one page.I just want to loop through it showing 10 book per page.
and for the rest , I want to show links to each page.
For example , like the following



I have no idea how to do it. does any framework support such kind of task? If somebody have the example code , I want to have a look. Please help me.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

We have a FAQ about pagination here, and a Journal article here.


[My Blog]
All roads lead to JavaRanch
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
So , is there any pagination tag lib? or do I have to implement by my own?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35253
    
    7
DisplayTag


Android appsImageJ pluginsJava web charts
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
DisplayTag! What do you mean bro ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35253
    
    7
I mean, enter "displaytag" in the search field of your browser, hit the enter key, and watch what happens :-)
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
Oh yes.I got it. . Thanks Dittmer.
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
hi,
Can I only print in table structure? what if I want to print in other structures?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35253
    
    7
Like what? Using CSS, you can make the table look like a list, for example. I don't think it's possible to get rid of the underlying table structure, though.
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
I mean ,for example , Please look at this site.. [ UD: Link to file sharing site removed. Don't ever link to such a site again. You also MUST mention if the design of a site is not safe to open at a workplace. ]
It prints one object by one.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Showing long list
 
Similar Threads
Not being able to locate TLD file?
HFS&J page 353
how to create a new datatable on rowclick from another datatable
How to display only selected amount of data from database in two dropdown lists?
form handling in jsp