You’re wondering how the Container found the Servlet...

Somehow, the URL that comes in as part of the request from the client is mapped to a specific servlet on the server. This mapping of URLs to servlets might be handled in a number of different ways, and it’s one of the most fundamental issues you’ll face as a web app developer. The user request must map to a particular servlet, and it’s up to you to understand and (usually) configure that mapping. What do you think?

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.