}
public void processView() {
Database db = null;
View view = null;
ViewEntryCollection collection = null;
ViewEntry currentEntry = null;
ViewEntry nextEntry = null;
StringBuilder sb = new StringBuilder();
try {
db = ExtLibUtil.getCurrentDatabase();
view = db.getView("allStates");
view.setAutoUpdate(false);
collection = view.getAllEntries();
currentEntry = collection.getFirstEntry();
while (currentEntry != null) {
nextEntry = collection.getNextEntry(currentEntry);
try {
sb.append(currentEntry.getNoteID() + "..."); // Do whatever it is you actually want to get done
} catch (lotus.domino.NotesException ne1) {
ne1.printStackTrace();
} finally {
currentEntry.recycle();
}
currentEntry = nextEntry;
}
} catch (lotus.domino.NotesException ne) {
ne.printStackTrace();
} finally {
try {
collection.recycle();
} catch (lotus.domino.NotesException ne) {
}
}
ExtLibUtil.getViewScope().put("oldJavaTest", sb.toString());