A “working” Deployment Descriptor (DD)

Don’t worry about what any of this really means (you’ll see and be tested on this in other chapters). Here, we just wanted to show you a web.xml DD that actually works. The other examples in this chapter were missing a lot of the pieces that go into the opening <web-app> tag. (You can see why we don’t usually include it in our examples.)

The way we usually show it in the book

image with no caption

The way it REALLY works

image with no caption

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.