java - JSP: Foreach custom object -


I am using datestacks Java driver and JSP.

In Java, I can use this code. ResultSet and Row are both Datastax Java drivers.

  ResultSet result = a.selectAccumulationByDate (); (Row row: result) {System.out.println (for line .getString ("event")); }  

When I use JSP with this code

  & lt; C: forEach var = "apps" items = "$ {list}" & gt;  

I get this error

  javax.servlet.jsp.JspTagException: do not know about it being repeated on the supplied items  

So far the solution is sending them as a list. But it will read the entire list twice. Anyway, can I send this ResultSet and process it in JSP?


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -