Chapter 26. Servlets and JSP

  • Overview of Servlets and JSP

  • Why Use Servlets?

  • Releases and Versions

  • Installing the Tomcat Software

  • Running the Example Servlets

  • Ports and Protocols

  • The HTML to Invoke a Servlet

  • A Servlet and Its Request/Response

  • Servlet Request

  • Response to a Servlet Request

  • Writing Your Own Servlet

  • Servlet Operating Cycle and Threading

  • Java Server Pages

  • Java Beans in Servlets and JSP

  • Last Words on JSP, Beans, and Tag Libraries

  • Further Reading

  • Exercises

  • Some Light Relief—Using Java to Stuff an Online Poll

This chapter describes two key Java technologies that are used in server-side Java: servlets and JSP.

Overview of Servlets and JSP

The first of these technologies, servlets, provides a way for a browser ...

Get Just Java™ 2 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.