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 O’Reilly online learning.

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