March 2008
Intermediate to advanced
911 pages
20h 31m
English
Content preview from Head First Servlets and JSP, 2nd Edition
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
Start your free trial



Each request runs in a separate thread!
You might hear people say things like, “Each instance of the servlet...” but that’s just wrong. There aren’t multiple instances of any servlet class, except in one special case (called SingleThreadModel, which is inherently evil), but we’re not talking about that special case yet.
The Container runs multiple threads to process multiple requests to a single servlet.
And every client request generates a new pair of request and response objects.
