Servlet in Java Language?


What is Servlet?




·      Servlet is a java based technology which is used to create a web application.
·     It is a server side language which generates dynamic web pages.
·    Before servlet there was a technology in used called as CGI (common gateway interface) but it was having many disadvantages which is filled by servlet.
·   There are lots of interfaces and classes in the Servlet API such as Servlet, GenericServlet, HttpServlet, ServletRequest, ServletResponse, etc.
· Servlet is an interface that must be implemented for creating any Servlet.
·  Servlet is a web component that is deployed on the server to create a dynamic web page. 
·      Advantages of servlet over CGI

o  If the number of clients increases, it takes more time for sending the response.

o  For each request, it starts a process, and the web server is limited to start processes.

o  It uses platform dependent language e.g. C, C++, perl.




Comments

Popular Posts