Java servlet


Java servlet

(World-Wide Web)(By analogy with "applet") A Java programthat 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 serverby generating web content dynamically. For example, aclient may need information from a database; a servletcan be written that receives the request, gets and processesthe data as needed by the client and then returns the resultto the client.

Applets are also written in Java but run inside the JVMof a HTML browser on the client. Servlets and appletsallow the server and client to be extended in a modular way bydynamically loading code which communicates with the mainprogram via a standard programming interface.

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

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

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