5.1. What is a servlet?

According to the Java Servlet Specification (Version 2.2):

A servlet is a Web component, managed by a container, that generates dynamic content. Servlets are small, platform-independent Java classes compiled to an architecture-neutral bytecode that can be loaded dynamically into and run by a Web server.

So, a servlet is a server-side software component written in Java, which is loaded and executed within the Java Virtual Machine (JVM) of any Java-enabled application server such as the WebSphere Application Server.

Get WebSphere V3.5 Handbook 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.