Display All
Display All
QueryAccessor query = new QueryAccessor();
try {
int maxrows = Integer.parseInt(request.getParameter("maxrows"));
Collection rows = query.getAllAccounts(maxrows);
while (rows.size() > 0) {
for(Iterator i=rows.iterator(); i.hasNext(); ) {
Account account = (Account)i.next();
out.println("- " + account.toString() + "
");
}
rows = query.getNext(maxrows);
}
}
finally {
query.close();
}
home