Java Servlet and JSP Tutorial

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ gives a detailed Java servlet tutorial as well as a mini tutorial on JavaServer Pages.

Servlet Tutorial Table of Contents

Here are the topics currently covered at the servlet tutorial:

  • Java Servlet Tutorial: Accessing the Standard CGI Variables
    • The CGI variables, their meaning, and the servlet equivalent
    • Servlet example: making a table of all CGI variables
  • Java Servlet Tutorial: Setting HTTP Status Codes
    • Overview: status codes and messages
    • Setting status codes from a servlet
    • HTTP 1.1 status codes and their meanings
    • Servlet example: a search engine front end
  • Java Servlet Tutorial: Specifying HTTP Response Headers
    • Overview
    • Common response headers and their meaning
    • Servlet example: starting a long-running calculation, showing partial results, and periodically updating display with new data.
  • Java Servlet Tutorial: Handling Cookies
    • Intro: How Cookies Can Be Used (and Abused)
    • The servlet Cookie API
    • Some servlet cookie utilities
    • Servlet example: a customized search engine interface
  • Java Servlet Tutorial: Session Tracking
    • Overview of servlet session tracking
    • The servlet session tracking API
    • Servlet session tracking example
  • JavaServer Pages (JSP)
    • JSP Tutorial: Overview
    • JSP Tutorial: Syntax Summary
    • JSP Tutorial: Template Text (Static HTML)
    • JSP Tutorial: JSP Scripting Elements: Expressions, Scriptlets, and Declarations
    • JSP Tutorial: JSP Directives
    • JSP Tutorial: Example using Scripting Elements and Directives
    • JSP Tutorial: Predefined Variables
    • JSP Tutorial: JSP Actions
    • JSP Tutorial: JSP Comments and Character Escaping Conventions