O'Reilly logo

Enterprise Java Programming with IBM WebSphere by Daniel Berg, Greg Hester, Mark Weitzel, Gary Craig, David Pitt, Jim Amsden, Kyle Brown, Russell Stinehour, Peter M. Jakab

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required