Monday, 27 February 2012
J2EE: SERVLET: What is Servlet?
Do you like this Article?
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.
Subscribe to:
Post Comments
(
Atom
)
Popular Posts
-
public - public means everyone can access it.That means it's in global scope. As, main method is called by JVM [ Java Virtual Machine...
-
throw is used to throw an exception in a program, explicitly . Whereas, throws is included in the method's declaration part, wi...
-
Singleton in one of the most popular yet controversial design pattern, in the world of object oriented programming. It's one of t...
-
Web Container / Servlet Container / Servlet Engine : In J2EE Architecture , a web container (also known as servlet container or ser...
-
ORM ( Object Relational Mapping ) is a programming concept of a mapping between Object Oriented Programming and Relational Database ...
-
In Java Programming Language , we must declare a variable name and type, before using it. The data type of a variable defines the th...
-
Vector : It's synchronized. It's slower than ArrayList. It's generally used in ...
-
Program compiles. But at runtime throws an error “NoSuchMethodError”.
201 Responses to “ J2EE: SERVLET: What is Servlet? ”
«Oldest ‹Older 201 – 201 of 201 Newer› Newest»21 August 2025 at 22:55
This post provides a clear and straightforward explanation of what a servlet is in the J2EE framework. It’s a great starting point for beginners looking to understand how servlets work and their role in web application development. Well-structured and easy to follow!
financial modeling courses in delhi
Post a Comment