4.4.2 Servlets/JSP
4.4.2 Servlets/JSP
2 Servlets/JSP
INTRODUCTION
A Servlet Is a generic server extension. a Java class that can be loaded
Dynamically to expand the functionality of a server.Servlets are commonly
used with web servers. Where they can take the place !I scripts.
A servlet is similar to proprietary server extension" except that it runs
inside a Java #irtual $achine %J#$& on the server" so it is safe and
portable
Servlets operate solely within the domain of the server.
'nlike !I and (ast !I" which use multiple processes to handle
separate program or separate re)uests" separate threads within web
server process handle all servlets. *his means that servlets are all efficient
and scalable.
Servlets are portable+ both across operating systems and also across web
servers. Java Servlets offer the best possible platform for web application
development.
Servlets are used as replacement for !I scripts on a web server" they
can extend any sort of server such as a mail server that allows servelts t
extend its functionality perhaps by performing a virus scan on all attached
documents or handling mail filtering tasks.
Servlets provide a Java,based solution used to address the problems
currently associated with doing server,side programming including
inextensible scripting solutions platform,specific A-I.s and incomplete
interface.
Servlets are ob/ects 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 server,side what applets are to the client,side,ob/ect byte codes that can
be dynamically loaded off the net. *hey