0% found this document useful (0 votes)
212 views

Features of Servlets

Servlets are Java classes that extend functionality for handling web requests and responses. They are persistent, platform independent, secure, and extensible. Servlets offer better performance than other options since they are loaded only once by the web server and can handle requests between loads. All servlets must implement the Servlet interface, with most extending GenericServlet or HttpServlet to gain generic or HTTP-specific functionality respectively. The server invokes a servlet's service method each time it handles a request rather than a main method.

Uploaded by

Lakshmi Pujari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views

Features of Servlets

Servlets are Java classes that extend functionality for handling web requests and responses. They are persistent, platform independent, secure, and extensible. Servlets offer better performance than other options since they are loaded only once by the web server and can handle requests between loads. All servlets must implement the Servlet interface, with most extending GenericServlet or HttpServlet to gain generic or HTTP-specific functionality respectively. The server invokes a servlet's service method each time it handles a request rather than a main method.

Uploaded by

Lakshmi Pujari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Its extensible-you can inherit all your functionality from the base

classes made available to you


Its simple small, and easy to use.
Features of Servlets:
Servlets are persistent.Servlet are loaded only by the web
server and can maintain services between requests.
Servlets are fast. Since servlets only need to be l\loaded once,
they offer much better performance over their CI counterparts.
Servlets are platform independent.
Servlets are extensible !ava is a robust, ob"ect-oriented
pro#rammin# lan#ua#e, which easily can be extended to suit
your needs.
Servlets are secure
Servlets are used with a variety of client.
Servlets are classes and interfaces from tow pac$a#es,"avax .servlet and
"avax.servlet.http.%he "ava.servlet pac$a#e contains classes t support
#eneric, protocol-independent servlets.%he classes in the "avax.servelt.http
pac$a#e %o and &%%' specific functionality extend these classes
(very servlet must implement the "avax.servelt interface.)ost servlets
implement it by extendin# one of two classes."avax.servlet.enericServlet
or "avax.servlet.http.&ttpServlet.* protocol-independent servlet should
subclass eneric-Servlet.while an &ttp servlet should subclass
&ttpServlet, which is itself a subclass of eneric-servlet with added &%%'-
specific functionality.
+nli$e a "ava pro#ram, a servlet does not have a main,- method,Instead
the server in the process of handlin# requests invo$e certain methods of a
servlet.(ach time the server dispatches a request to a servlet, it invo$es
the servelts Service,- method,

You might also like