This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
This is certainly possible. Ideally, you'd want your Servlet to retrieve the data from the database and feed it to the JSP, at which point the JSP will use custom tags to dynamically build the tables. You can set page breaks in the HTML to create a printer-friendly report that can be printed easily.
If all this sounds alien to you, just ask a more detailed question, and you'll most likely get an answer/suggestion which is more descriptive.