• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

paging through struts

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am using struts . if any body have idea about paging then please share idea with me..
its very urgent..
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd suggest you look at the Display Tag Library which is an add-on to Struts. It allows you create tables of data with a built-in paging feature.
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My project uses the Pager tag library:
http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html

The solution that works best for you depends on the size of the data you are dealing with and scalability requirements. A solution at the database level is likely to be more efficient but also more complex. My project picked Pager as a interim solution, but it has worked well for several years.

- Brent
 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Brent,

I am very confused about paging. and the third party tools for pagination.
I have some doubts regarding paging using Struts.
I have 4 links First,Previous,Next,Last.
I want to retrieve list of say 20(per page record) record from database when user click on next.
can you please tell me from where i can start ?? Also i did not the list(result set) to be loaded with all database entries but actually we are using 20 records in JSP page.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic