dcsimg
Struts tag library that display 10 record per page
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Leon_Yip
Posted On:   Wednesday, April 14, 2004 08:18 PM

Hi, I have understand how struts render the collection and display the result in a jsp.


However, if I want to display like 10 record per page, what should I do? is there a tag library that help me doing this
and display the number of record, and generate the page number for me? thanks.

Re: Struts tag library that display 10 record per page

Posted By:   Erik_Runia  
Posted On:   Thursday, April 15, 2004 09:51 AM

I'm not sure if anyone has a tag library for that, but its fairly easy to do. Simply check your iteration in your jsp page for a range (tied to a counter or whatnot) and only display the requested range (default 1-10). Then display previous and next buttons that pass in a new dynamic range when clicked.
About | Sitemap | Contact