I have a basic question. I'm writing a basic application that uses a servlet to query a database, and then I want to extract the info from the ResultSet, I want to send it all to a JSP page. My question is how do I get a bunch of records from the Servlet to the JSP page. I'll probably be getting about 1500 records from the Database. Is there a way to send an array of information from the servlet to the JSP? Thanks for any help.
posted 12 years ago
yes, you just use request.setAttribute(). You can pass any object to the jsp (List, Map, ResultSet, etc.).