What if you need a tag that’s NOT in JSTL?

The JSTL is huge. Version 1.1 has five libraries—four with custom tags, and one with a bunch of functions for String manipulation. The tags we cover in this book (which happen to be the ones you’re expected to know for the exam) are for the generic things you’re most likely to need, but it’s possible that between all five libraries, you’ll find everything you might ever need. On the next page, we’ll start looking at what happens when the tags below aren’t enough.


The “Core” library





URL related




We didn’t cover this one... it lets you iterate over tokens where YOU give it the delimiter. Works a lot like StringTokenizer. We also didn’t cover <c:redirect>, but that gives you a wonderful excuse to get the JSTL docs.

The “Formatting” library





The “SQL” library

Database access


The “XML” library

Core XML actions


XML flow control


Transform actions



Only the “core” library is covered on the exam.

The “core” ...

Get Head First Servlets and JSP, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.