Last-minute things you need to know

This is a learning experience, not a reference book. We deliberately stripped out everything that might get in the way of learning whatever it is we’re working on at that point in the book. And the first time through, you need to begin at the beginning, because the book makes assumptions about what you’ve already seen and learned.

We use simple UML-like diagrams.

Although there’s a good chance you already know UML, it’s not covered on the exam, and it’s not a prerequisite for the book. So you won’t have to worry about learning servlets, JSP, JSTL, and UML at the same time.

image with no caption

We don’t cover every single picky detail from the spec.

The exam is pretty detailed, though, and so are we. But if there’s a detail in the spec that’s not covered in the exam, we don’t talk about it unless it’s important to most component developers. What you need to know to begin developing web components (servlets and JSPs), and what you need to pass the exam, overlap about 85%. We cover a few things not on the exam, but we point them out so you don’t have to try to memorize them. We created the real exam, so we know where you should focus your energy! If there’s a chance that this one picky detail might be on one question on the exam, but the effort to learn it isn’t really worth it, we might skip it, or cover it only very lightly, or only in a mock exam question.

The activities are NOT optional.

The exercises and activities are not add-ons; they’re part of the core content of the book. Some of them are there to help with memory, some for understanding, some to help you apply what you’ve learned. Don’t skip anything.

The redundancy is intentional and important.

One thing that’s distinctly different in a Head First book is that we want you to really really really get it. And we want you to finish the book remembering what you’ve learned. Most information or reference books don’t necessarily have retention and recall as a goal, but in this book you’ll see some of the same concepts come up more than once.

The code examples are as lean as possible

Our readers tell us that it’s frustrating to wade through 200 lines of code looking for the two lines they need to understand. Most examples in this book are shown within the smallest possible context, so that the part you’re trying to learn is clear and simple. Don’t expect the code to be robust, or even complete. That’s your assignment for after you finish the book. The book examples are written specifically for learning, and aren’t always fully functional. Some of the code examples for the book are available at www.headfirstlabs.com.

Get Head First Servlets and JSP, 2nd 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.