I am new to Servlets/JSP
. I have built a Web application where I query db based on user input and store the resultset
as session attribute.
Now when I try to access the result set using JSTL
tag for each its giving error. I have used Derby as my db.
following is the code snippet.
<c:forEach var="row" items="${sessionScope.borrow_list.rows}">
<li>Name : <c:out value="${row.book}" /></li>
<li>Author : <c:out value="${row.author}" /></li>
</c:forEach>
and this is the exception.
JspPropertyNotFoundException: /member_home.jsp(20,2) '${sessionScope.borrow_list.rows}' Property 'rows' not found on type org.apache.derby.client.net.NetResultSet42
However I did see an example where the above code was used. Am I doing something wrong or my db(ResultSet) doesn't support this functionality.