Assuming that you want to implement a simple paging mechanism w/o many conditions to handle for every paging request, you might want to give a try to DisplayTag. It's well documented and relatively easy to implement.
What's wrong? Where are you going? Stop! Read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop