Chapter 6. Servlets

Now that we've examined some of the architectural issues surrounding the use of server-side programming and J2EE, we can look in-depth at the first of the APIs that make up the programming model. In this chapter, we will introduce you to the concept of a servlet and discuss what servlet programming entails. We will discuss the following:

  • HyperText Transfer Protocol (HTTP) basics

  • Servlet concepts

  • Servlet life cycle

  • Example servlet

  • web.xml deployment descriptor file

  • Filters

  • Servlet API

  • Arguments for using servlets

This chapter, which fundamental concepts about the servlet API, will focus entirely on the servlet container as shown in Figure 6.1. In the next chapter, we will examine how to take the examples and principles that we will review ...

Get Enterprise Java Programming with IBM WebSphere 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.