Hi,
I hope someone can help me with this question.
Does anybody knows how to pass a ResultSet from a servlet to a jsp using a session. I can pass a string OK.
For a string I do this in the servlet:
HttpSession session = request.getSession(true);
session.setAttribute("Test", "test string.........."
;
RequestDispatcher disp;
disp = getServletContext( ).getRequestDispatcher("/XX.jsp"
;
disp.forward(request, response);
Then in the JSP page i do this.
<%=session.getAttribute("Test"
%>
and it works OK. But I need to pass a resultset
Thanks
I hope someone can help me with this question.
Does anybody knows how to pass a ResultSet from a servlet to a jsp using a session. I can pass a string OK.
For a string I do this in the servlet:
HttpSession session = request.getSession(true);
session.setAttribute("Test", "test string.........."
RequestDispatcher disp;
disp = getServletContext( ).getRequestDispatcher("/XX.jsp"
disp.forward(request, response);
Then in the JSP page i do this.
<%=session.getAttribute("Test"
and it works OK. But I need to pass a resultset
Thanks