Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display products in multiple pages using Struts 2.

 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • 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
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic