hi guys,
i'm new to Java and currently focusing on learning servlet. I'm trying to figure out this example that i have to do. It's asking me to connect to a database retrieve records and display them on a jsp page.
So i have my servlet connected to a database, Now my question is.
1) should i be calling a utility class from a servlet passing it the ResultSet so it can make it ready to be displayed on a jsp page! the utility class then have to do some html coding to display the ResultSet in table format on the jsp page.
2) Use JSTL and create a custom tag to loop through resultsets.
I'm not a big fan of coding html inside classes/servlets. I want classes to do their part and use jsp to view results. Did i answer my own question!!
what other approach you would recommend?
Thanks.

