Servlet

Servlet

Courses Info

A Java Servlet is a Java program that extends the capabilities of a server. Although servlets can respond to any types of requests, they most commonly implement applications hosted on Web servers. Such Web servlets are the Java counterpart to other dynamic Web content technologies such as PHP and ASP.NET.Servlet technology is used to create web application.

Servlet technology is robust and scalable because of java language. Before Servlet, CGI (Common Gateway Interface) scripting language was popular as a server-side programming language. But there was many disadvantages of this technology.

 

What is a Servlet?

Servlet can be described in many ways, depending on the context.

  • Servlet is a technology i.e used to create web application.
  • Servlet is an API, that provides many interfaces and classes including documentation.
  • Servlet is an interface that must be implemented for creating any servlet.
  • Servlet is a class that extend the capabilities of the servers and respond to the incoming request.
  • It can respond to, any type of request.
  • Servlet is a web component that is deployed on the server create dynamic web page.