How can I access the ResultSet without ScriptLet mixed in the JSP?
Joined: Dec 10, 2004
I got a java.sql.ResultSet instance when I executed a query statement in the Servlet. I want to transfer the ResultSet instance to the JSP page to display the query result without ScrpitLet mixed into the JSP page.
If it cannot be realized, is there any way by which JSP page could access ResultSet object without ScriptLet.
Please introduce the involved methods or patterns. Thanks!
Joined: Oct 24, 2004
you cant use a result set with jstl because ResultSet does not follow java bean convention for getter method - better to populate a collection of java bean from the original result set. this also has advantage so you can close your ResultSet, Statement and Connection to free resources earlier.