I guess you should'nt bring the Result Sets in JSP and iterate them there. This is not a good practice. YOu should store the contains of the result sets in different Java Bean objects. And then iterate the beans in JSPs. This follows as Transfer Object and Value Object Pattern in J2ee design Patterns.
I guess you should disconnect the resultset first and then send it to JSPs if you want you current model to work to avoid Runtime exception .