To print from the HTML page, please refer Jabber's response. I don't get you in printing from the back-end of a table. In fact you can do anything in your JSP's logic (including Printing). But I don't see the point printing from the back end.
A question: In JSP page, how to send and control output to printer( such as printing a table)? Thanks in advance!