Passing MongoDB Block from a servlet to a JSP
问题 I have the following Block which filters the data according to the filters I have applied; i.e. it should print only those data that match with "name" Block<Document> printBlock = new Block<Document>() { @Override public void apply(final Document document) { System.out.println(document.toJson()); } }; collection.find(eq("name", name)).forEach(printBlock); I wish to send this data from the current servlet to JSP so that I can display the data. How should I go about this? EDIT: JSP Page: <form