Back to Top

Monday, 27 February 2012

J2EE: SERVLET: What is Servlet?


Servlet is a server-side (runs within a Web server), Java Programming Language Class which interacts with clients via request-response programming model (example, HTTP Request-Response model).

It can respond to any type of request, but, generally, it is used to extend the application hosted by Web Server by providing dynamic web content.

It has build-in threading capability and provides a secure environment for programming.

Java Servlet API provides javax.servlet and javax.servlet.http packages offer necessary classes and interfaces for writing servlets. All Servlets must implement Interface Servlet, which contains the servlet life-cycle methods.

To implement a generic service we can extend Class GenericServlet, which defines a generic, protocol-independent servlet. And to write an HTTP servlet for use on the Web, we can extend Class HttpServlet, which provides methods, such as doGet() and doPost(), for handling HTTP-specific services.
Anijit Sarkar

5 Responses to “ J2EE: SERVLET: What is Servlet? ”

jack said...
19 June 2012 at 20:34

Your have a nice blog theme, i really like this one.

outdoor garbage containers

Abirami Guru said...
5 February 2015 at 18:30

i understanding this concept i like this thank u so much

kovalan Jayamurugan said...
16 September 2015 at 14:11

Thanks for your informative post on Java application development. This open source platform assists software developers to create stunning mobile application with ease. Further, they can make use of this platform at free of cost. J2EE Training in Chennai | JAVA Training in Chennai

Shashaa Tirupati said...
29 September 2015 at 14:29

Engineering students who are interested in best inplant training in chennai can contact us. We provide real time best inplant training in chennai for aspiring students.

varshini devi said...
22 November 2015 at 18:08

Nice Article! Mostly I have gathered knowledge from the blogger, because its provides more information over the books & here I can get more experienced skills from the professional, thanks for taking your to discussing this topic.
ccna courses in Chennai|ccna training center in Chennai

Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar
blog links Web Directory Academics Blogs