File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Dynamic table with prev next links Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Dynamic table with prev next links" Watch "Dynamic table with prev next links" New topic

Dynamic table with prev next links

Richard Elsberry
Ranch Hand

Joined: Mar 14, 2001
Posts: 40
Anybody heard of a component/taglib that will display a list in a JSP page. You see them everywhere. They usually contain a next and previous link as well as 1-5 out of 50 and additional links like 1 2 3 4 5 to jump ahead in a group of 50. I started to write my own and thought that this must be available somewhere but have been unable to find one. I sorely need something like this for my toolkit.

Thanks in advance,
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

There are a number of them out there. I don't have any links handy as I personally found them too limited or badly architected (essentially forcing you use Model 1 pages). So I rolled my own. It's really not that hard. If your own is close to working and does what you want, I'd continue with it.

There's a JSP FAQ entry on the subject.

[Asking smart questions] [About Bear] [Books by Bear]
Richard Elsberry
Ranch Hand

Joined: Mar 14, 2001
Posts: 40
Thanks Bear. That's kinda what I thought and what I've experienced also. I was hoping to save time.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

If you want to try out one, you can have a look at the Display Tag Library

[My Blog]
All roads lead to JavaRanch
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
or the taglibrary that uses the value list handler design pattern.

MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
subject: Dynamic table with prev next links
It's not a secret anymore!