• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with large collection of data

 
manas ranjan mandal
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9266
10
Linux Mac OS X Windows
 
DN Debed
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic