File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Display products in multiple pages using Struts 2. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Display products in multiple pages using Struts 2." Watch "Display products in multiple pages using Struts 2." New topic
Author

Display products in multiple pages using Struts 2.

Sammy Bill
Ranch Hand

Joined: Dec 29, 2008
Posts: 96
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

Joined: Sep 07, 2008
Posts: 689


Hi,

Use just Display tag that will solve your problem.

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


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Sammy Bill
Ranch Hand

Joined: Dec 29, 2008
Posts: 96
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display products in multiple pages using Struts 2.