Cerberus 17 Junior Poster

Hi. Is it possible to use a resultset from a scriplet in a <c:forEach> loop?

E.g.

results = prepstatement.executeQuery();
request.setAttribute("results", results);
<c:forEach items="${results.rows}" var="row">
      row.fieldValue <br />
</c:forEach>

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.