Hi,
Any help will be appreciated.
I have a servlet that reads a database and creates a resultset that works OK because I can displau the data in the servlet. Now i want to pass the resultset to a JSP page but I'm having problems.
In the servlet I do this:
Resulset searchResultsList = stmt.executeQuery("select xx);
RequestDispatcher disp;
disp = getServletContext( ).getRequestDispatcher("/T1.jsp"
request.setAttribute("search.results", searchResultsList);
disp.forward(request, response);
In the JSP page I try this:
<%rs = request.getAttribute("search.results"%>
if I pass a string it works ok.
Thanks for any help.
Any help will be appreciated.
I have a servlet that reads a database and creates a resultset that works OK because I can displau the data in the servlet. Now i want to pass the resultset to a JSP page but I'm having problems.
In the servlet I do this:
Resulset searchResultsList = stmt.executeQuery("select xx);
RequestDispatcher disp;
disp = getServletContext( ).getRequestDispatcher("/T1.jsp"
request.setAttribute("search.results", searchResultsList);
disp.forward(request, response);
In the JSP page I try this:
<%rs = request.getAttribute("search.results"%>
if I pass a string it works ok.
Thanks for any help.