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

problem with large collection of data

manas ranjan mandal
Ranch Hand

Joined: Apr 02, 2008
Posts: 97
i want to know that how to display large collection of data in multiple page in browser using struts and to view page that should have next or previous button or page number in each page just like showing in google search when we search something??

thanks in advance
Joe Ess

Joined: Oct 29, 2001
Posts: 8836

Try searching the forum for "paging".

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
DN Debed

Joined: Nov 03, 2008
Posts: 10
You can search google for this tag library called displayTag. I have tried it and it looks ok.

here is the link to their site
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


for your problem you can use display tag for paging.

But you can not use Struts tag with Display tag.

So, you have to use scriptlet for display tag when you want some data passed on Action.

Nishan Patel.

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Either you can use display tag or you can write your own library for paging, you must be aware of JSTL for it. The later is more convenient to customize. But I prefer to use display tag, for rapid outcome.

Ananth Chellathurai

Ananth Chellathurai [Walk on software]
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Yes Ananth Chellathurai Says

for rapid outcome that is absolutely right.

if you know jstl then it is better for you.

So use Display tag.

Nishan Patel.
wood burning stoves
subject: problem with large collection of data
Similar Threads
Big Collection, integer key
database - help
Help needed- Options for increasing performance
Read large xml file for searching
searching file among 3 hundred thousand files