This chapter provided an introduction to the J2EE servlet technology. Java servlets represent a robust, useful facility for creating Web components. In this chapter we demonstrated how to program and configure a servlet using an example that performed the transformation of an XML document into an HTML page.
We will come back to Java servlets again in Chapters 33 and 34. For now, we will look at the other Java Web component: the JSP and we will see how this scripting language can be used to create presentation tier components for a J2EE application.