In some way you did answer it and you are on good way
Be sure that each class you write has clean and simple responsibility.
So don't call DB from servlet, create another class to do it.
Servlet has its own resposibility.
Once you have ResultSet you can do many things
but be sure never to use scriplets on JSP page.
You don't have to always write tags for this,
if you have simple application then some simple "ResultBean" class will do it.
Use JSTL to iterate through that class if in collection and
simply display it in JSP.
regards!