O'Reilly logo

Servlet, JSP and Spring MVC: A Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1

Servlets

Servlet is the main technology for developing servlets. Understanding the Servlet API is your gateway to becoming a formidable Java web developer. It is imperative that you be familiar with the core interfaces and classes in the Servlet API.

This chapter introduces the Servlet API and teaches you how to write your first servlet.

Servlet API Overview

The Servlet API comes in four Java packages. The packages are as follows.

  • javax.servlet. Contains classes and interfaces that define the contract between a servlet and a servlet container.
  • javax.servlet.http. Contains classes and interfaces that define the contract between an HTTP servlet and a servlet container.
  • javax.servlet.annotation. Contains annotations ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required