Chapter 9. Database Actions

Topics in This Chapter

  • Overview

  • A Simple Database

  • How JSTL Locates Data Sources

  • Creating Data Sources

  • Querying a Database

  • Updating a Database

  • Executing Database Transactions

  • Implementing Database Custom Actions

The vast majority of commercial websites are driven by relational databases. Because databases are so pervasive on the Web, JSTL provides a set of actions for database connectivity and access. The central theme of this chapter is how you can make the most of those actions.

First however, a cautionary note. Most often, it's desirable to separate presentation logic from business logic; for example, many Web applications are implemented with the Model-View-Controller (MVC) architecture, where business components manipulate ...

Get Core JSTL: Mastering the JSP™ Standard Tag Library 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.