File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes pagination for images / picture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pagination for images / picture " Watch "pagination for images / picture " New topic

pagination for images / picture

shally kumar

Joined: Jul 30, 2008
Posts: 7
Hi all,

I have made a small search engine for a pictures using struts2+hibernate, MySQL. I have couple of thousands picture. Now I want, if a search query returns lot of records then just to show 10-20 pictures per page. I searched a lot and looks only option for pagination with struts2 is "DisplayTag" that works great with text representation. Could somebody please guide me what I can use for pagination of images or if display tag has support for showing pictures. How could I use displaytag with images?

Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Try with pager tag for me it's worked without any problems. When you are working with image better to use pager tag.

ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
shally kumar

Joined: Jul 30, 2008
Posts: 7
Thanks Mohana! I'll try to implement it.
I agree. Here's the link:
subject: pagination for images / picture
jQuery in Action, 3rd edition