abstract the jsp pagination codes.