Skip to content
Search

Java Servlet

lastmod 2018-08-17created 2014-03-118 edits

A Java Servlet is a server-side program, or its specification, that dynamically generates web pages using Java; it is commonly just called a "servlet".

Java Servlet is part of the Java EE specification, and many web systems such as online shopping malls and online banking are implemented mainly using this feature.

Similar technologies include CGI using Perl and others, mod_php which runs PHP inside the Apache web server process, and ASP running on Microsoft's IIS. Whereas CGI creates a new process to respond to each request, a Java Servlet responds to each external request with a thread, which is lighter than a process, so it is more lightweight. Also, because Java Servlets are implemented in Java, they run on a variety of platforms.

History

Servlet API version

Released

Java platform

Important changes

Servlet 3.0

January 2009

JavaEE 6

JSR 315, asynchronous support for Ajax, ease of development through annotations, development and deployment without web.xml

Servlet 2.5

September 2005

JavaEE 5, J2SE 5.0

JSR 154, Requires J2SE 5.0, supports annotations

Servlet 2.4

November 2003

J2EE 1.4, J2SE 1.3

JSR 154, web.xml uses XML Schema

Servlet 2.3

August 2001

J2EE 1.3, J2SE 1.2

Addition of Filters

Servlet 2.2

August 1999

J2EE 1.2, J2SE 1.2

Becomes part of J2EE, introduced independent web applications in .war files

Servlet 2.1

November 1998

Unspecified

First official specification, added RequestDispatcher, ServletContext

Servlet 2.0

JDK 1.1

Part of Java Servlet Development Kit 2.0

Servlet 1.0

June 1997

See also

Favorite site

References


  1. Servlet_simple_example.pdf ↩

  2. Powerful_Programming_-_Servlet_and_Servlet_Container.pdf ↩