I see this often enough that I thought I'd give myself a reference for when I see a lead on it.
first example is on the forums.sun.com site. http://forums.sun.com/thread.jspa?threadID=578347&tstart=0
second example on the java2s.com site. http://www.java2s.com/Code/Java/JNDI-LDAP/howapagedsearchcanbeperformedusingthePagedResultsControlAPI.htm
since I know nothing about java, I can't validate that this works... but it's good reference.