You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michelle Popovits <mp...@hotmail.com> on 2001/09/26 04:02:23 UTC

pagination?

Does struts support pagination of a collection over multiple pages.
You know, there you have <prev> <next> buttons to move from one page of 
items to the next (ie. a list of 100 items, 10 per page, 10 pages total).
I know, so far that I can use the iterate tag to display the collection in a 
table.  Now, I would like to see what the best way is to add pagination.

Does struts support this or is this a manual effort?
Examples would be greatly appreciated.

Thanks,
Michelle

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Re: pagination?

Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Michelle" == Michelle Popovits <mp...@hotmail.com> writes:

    Michelle> Does struts support pagination of a collection over multiple pages.
    Michelle> You know, there you have <prev> <next> buttons to move from one page of items
    Michelle> to the next (ie. a list of 100 items, 10 per page, 10 pages total).

    Michelle> I know, so far that I can use the iterate tag to display the collection in a
    Michelle> table.  Now, I would like to see what the best way is to add pagination.

    Michelle> Does struts support this or is this a manual effort?
    Michelle> Examples would be greatly appreciated.

You don't need Struts to do this.  Try looking for the "Pager" tag library at
<http://jsptags.com>.  I haven't used it, but I've heard/seen many references
to it.

-- 
===================================================================
David M. Karr          ; Best Consulting
dmkarr@earthlink.net   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)