Saturday, June 13, 2015

// // 1 comment

What is Servlet?

What is Servlet?

Servlet is used to develop web application (server side java programming).  Before servlets there was a specification called CGI (Common Gateway Interface) as a server-side programming language.
A Servlet is a server side web component managed by web container for the generation of dynamic information.

  • Servlet is an interface that must be implemented for creating any servlet.
  • Web container will take care entire low level activities like identification of required servlet, load the corresponding servlet class, instantiation, invocation of init() and service() method.
  • For servlet Programming, we must import
    • javax.servlet.*;
    • javax.servlet.http.*;

1 comment :