How can I retrieve the results of a LDAP search in pages and also define number of entries on each page?

John Mitchell

Set the Context.BATCHSIZE property before you create the context:

// Set the batch size to 25...
env.put ("java.naming.batchsize", "25");

DirContext dc = new InitialDirContext (env);
//...
About | Sitemap | Contact