Please take the time to choose the correct forum for your posts. This forum is for questions on advanced Java. Not only is this not an advanced question, it's not a general Java question. For more information, please read this.
Assuming that you meant an HTML table, this post has been moved to a more appropriate forum.
A resultset should never get anywhere near the UI or a JSP.
Capture the data from the resultset in an appropriate Java collection and close the resultset as soon as possible. Pass the collection back to the controller for sending to the JSP for display.