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);
//...
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact