Summary

In this chapter, you've learned how to use JSP to automatically create content from the database. Each class that maps to a database row needs to have properties to represent all of the database data that will be used by the application.

Because objects may reference other objects that need to be loaded from the database, it's important to make sure that you don't implement an infinite loop by accident.

By driving content generation off the database, you can dynamically change the information presented on your site without having to change either classes or JSP.

The site is looking nice, but it's useless if you can't buy anything. In the next chapter, you will take a big step by actually implementing the Buy Me buttons that you've been ...

Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.