I need to dynamically generate html table and insert in the jsp page and would like to know the best way to do this. Theses are the options I am debating over:
- Generate a string which contains html tags in Servlet and set in attribute to forward to the jsp page
- Create object which contains data to generate table and set in the attribute to forward to jsp page, jsp page will use tag library to generate the table