Chapter 7. Accessing Data with SQL Tags

Data access is an important feature of any Web application. Most Web applications are driven by SQL-compatible databases. JSTL provides a complete set of tags that allows access to SQL databases.

You may be wondering why such tags are needed. Most multitier Web applications are designed to keep database access out of JSP pages completely. This allows JSP pages to concentrate on the presentation interface while a collection of Enterprise JavaBeans (EJB) handles the backend database access. The JSTL SQL tags are meant to give you a way to incorporate SQL access into smaller projects or prototypes that do not need the complexity introduced by a multitier system.

We begin by examining how to create a Web application ...

Get JSTL: JSP Standard Tag Library Kick Start 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.