The Servlet API
In Chapter 1, “Getting Started” you learned how to use NetBeans to write a Java web application. It is now time to delve into the technology behind it all, Servlet. Understanding the Servlet API is your gateway to becoming a formidable Java web developer. There are more than seventy types in this API and it is imperative that you be familiar with the most important ones.
This chapter introduces the classes and interfaces in the Servlet API that you should know. In addition, it teaches you to write servlets. All examples in this chapter can be found in the servletapi1, servletapi2 and servletapi3 sample applications.
The Servlet API comes in four Java packages. The packages are as follows. ...