Java servlet

(redirected from JSR 154)

Java servlet

(World-Wide Web)
(By analogy with "applet") A Java program that runs as part of a network service, typically an HTTP server and responds to requests from clients.

The most common use for a servlet is to extend a web server by generating web content dynamically. For example, a client may need information from a database; a servlet can be written that receives the request, gets and processes the data as needed by the client and then returns the result to the client.

Applets are also written in Java but run inside the JVM of a HTML browser on the client. Servlets and applets allow the server and client to be extended in a modular way by dynamically loading code which communicates with the main program via a standard programming interface.

Servlets are more flexible than CGI scripts and, being written in Java, more portable.

The spelling "servelet" is occasionally seen but JavaSoft spell it "servlet". There is no such thing as a "serverlet".

http://java.sun.com/products/servlet/.

servlet

A Java application in a Web or application server that provides server-side processing such as e-commerce and database search. Servlets are designed to handle HTTP requests (get, post, etc.) and are the Java replacement for a variety of methods, including CGI scripts, Active Server Pages (ASPs) and proprietary C/C++ plug-ins for specific Web servers (ISAPI, NSAPI).

Because they are written in Java, servlets are portable between servers and operating systems. The servlet programming interface (Java Servlet API) is a standard part of the Java EE platform. If a Web server does not run servlets natively, a third-party servlet plug-in can be installed to add the runtime support. See servlet container, Java, application server, JSP, Java EE, ISAPI, NSAPI and CGI script.


Servlets Run in the Server
Servlets, as well as JavaServer Pages (JSPs), are server-side applications. The Web server or application server must support servlet processing, which became available as part of the Java 2 platform.