HTTP and Servlets

Study for Week 2

This week we look at Java Servlet technologies. Servlets are the foundation for almost all web server technologies in Java.

At the end of this session, you should be able to:

  • Explain how HTTP works, including content-types
  • Implement a Servlet
  • Explain the parts of a WAR package

HTTP refresher

A look into the details of the hyper-text transfer protocol that underlies the web:

Introduction to Servlets

Why do we need Servlets? What is a Servlet?

Creating your own Servlets

Cookies and sessions

Tracking users as they browse your site:

To learn more, you can read Chapter 2 of:

Hunter, Jason (2001) Java Servlet Programming, O’Reilly,