Servlet is the main technology for developing servlets. Understanding the Servlet API is your gateway to becoming a formidable Java web developer. It is imperative that you be familiar with each of the over seventy types defined in the Servlet API. Seventy may sound a lot but it’s not hard if you learn one at a time.
This appendix introduces the Servlet API and teaches you how to write your first servlet.
The Servlet API comes in four Java packages. The packages are as follows.
▪ javax.servlet. Contains classes and interfaces that define the contract between a servlet and a servlet container.
▪ javax.servlet.http. Contains classes and interfaces that define the contract between an HTTP servlet and ...