Accessing a Database from a JSP Page

JSTL includes a number of actions for database access to make it easy to develop simple database-driven JSP applications. The actions provide the following features:

  • Using a connection pool for better performance and scalability

  • Supporting queries, updates, and inserts

  • Handling the most common data type conversions

  • Supporting a combination of database operations in one transaction

Each action is introduced as it’s used in the example in this chapter. In addition, you can find a complete description of all the actions in Appendix B.

Get JavaServer Pages, 3rd Edition 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.