There are three technologies for developing Web applications in Java: Servlet, JavaServer Pages (JSP), and JavaServer Faces (JSF). They are not part of the Java SE but members of the Java EE. However, considering that Web applications are the most popular applications today, they are also covered in this chapter. Each technology is complex enough to require a book of its own, therefore I can only promise an introduction here.
Of the three, the Servlet technology is the core technology on which JSP and JSF are based. The emergence of JSP after servlets did not make the Servlet technology obsolete. Rather, they are used together in modern Java Web applications.
This chapter explores the Servlet API and presents a few servlet applications as examples. Chapter 26, “JavaServer Pages” covers JSP.