As a newcomer to web application development, I am currently working on building a web application using the Model-View-Controller pattern. My setup includes a MySQL database for the Model, JSP pages for the Views, and a DAO for the Controller.
I am looking for guidance on how to retrieve data from the database and dynamically generate a table with that information. Should I resort to using JSP scriptlets or incorporate JavaScript? I have read mixed opinions about the use of scriptlets in JSP and I want to make sure I follow best practices.