It's not a secret anymore!*
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
Author

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
Bartender

Joined: Oct 29, 2001
Posts: 8867
    
    8

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
Greenhorn

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 http://displaytag.sourceforge.net/11/
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

hi,

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.


Thanks,
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.

Regards
Ananth Chellathurai


Ananth Chellathurai [Walk on software]
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Hi,

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.


Thanks,
Nishan Patel.
 
Don't get me started about those stupid light bulbs.
 
subject: problem with large collection of data