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 Other Open Source Projects and the fly likes Showing long list 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 » Products » Other Open Source Projects
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: 14687
    
  16

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: 41129
    
  45
DisplayTag


Ping & DNS - my free Android networking tools app
Yewint Ko
Ranch Hand

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

Joined: Mar 22, 2005
Posts: 41129
    
  45
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: 41129
    
  45
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://aspose.com/file-tools
 
subject: Showing long list
 
Similar Threads
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?
HFS&J page 353
form handling in jsp
Not being able to locate TLD file?