This document introduces the basics about servlets:
About Servlets
Servlets provide a JavaTM-based solution used to address the problems
currently associated with doing server-side programming, including
inextensible scripting solutions, platform-specific APIs, and
incomplete interfaces.
Servlets are objects that conform to a specific interface that can be plugged into a Java-based server. Servlets are to the server-side what applets are to the client-side -- object bytecodes that can be dynamically loaded off the net. They differ from applets in that they are faceless objects (without graphics or a GUI component). They serve as platform-independent, dynamically-loadable, pluggable helper bytecode objects on the server side that can be used to dynamically extend server-side functionality.
For example, an HTTP servlet can be used to generate dynamic HTML content. When you use servlets to do dynamic content you get the following advantages:
The Attractiveness of Servlets
There are many features of servlets that make them easy and attractive
to use. Servlets are:
(NOTE: Security in the JavaTM Web
ServerTM is provided by combining the
code-signing facility of JDKTM 1.1 and
the Access Control List implementation
of the Server Toolkit. This allows servlet classes, or servlet JAR files, to
be signed. The signers are then assigned permissions in an access control
list. For more information on servlet security, see
Security Administration for Java Web Server).
The Advantages of the Servlet API
One of the great advantages of the Servlet API is
protocol independence. It assumes nothing about:
Top java-server-feedback@java.sun.com |
Copyright © 1997
Sun Microsystems, Inc. All Rights Reserved. |