• 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

Display products in multiple pages using Struts 2.

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

I have a catalog page that display a list of products in inventory.
What should I do to limit the number of products displayed in a page to a specific number ( i.e: 10 products per page),
then having a link to the next page that will display the next 10 products?

any link or tutorial will be appreciated.

Thanks
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

Use just Display tag that will solve your problem.

http://displaytag.homeip.net/displaytag-examples-1.1/

 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nishan Patel wrote:
Hi,

Use just Display tag that will solve your problem.

http://displaytag.homeip.net/displaytag-examples-1.1/



Thanks for your help.
Looking at some tutorials i noticed that i have to use Table tags. I dont want to display the data in a tabular form. I m using CSS to display the data.
Is there any other way to handle paging of long lists without using tables?

Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic