Lägg till din servlet
request.setAttribute("rs",rs);
RequestDispatcher rd=request.getRequestDispatcher("your url");
rd.forward(request, response);
på jsp-sidan
ResultSet rs = (ResultSet)request.getAttribute("rs");
<%while (rs.next()) {
String item_id = rs.get(0);
String name = rs.get(1);
String unit_price = rs.get(2);
String qty = rs.get(3);
%>
<tr>
<td><%=item_id%></td>
<td><%=name%></td>
<td><%=unit_price%></td>
<td><%=qty%></td>
</tr>