I'm using Datastax Java Driver and JSP.
In java, I can use this code. Both ResultSet and Row are from Datastax java driver.
ResultSet results = a.selectAccumulationByDate();
for (Row row : results) {
System.out.println(row.getString("event"));
}
When I use JSP with this code
<c:forEach var="apps" items="${list}">
I get this error
javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items"
So far the solution is sending them as a list. But it will take two times reading the whole list. Is there anyway I can send this ResultSet and process it in JSP?