Directory Image
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Privacy Policy.

Java Certification Course In Pune Teaches About Servlet Techology

Author: Priya Arrora
by Priya Arrora
Posted: Aug 29, 2017

For creating the web application that stays at server side and produces dynamic web page is called Servlet technology used for creating web application. For more information join the Java certification course in Pune.

Due to Java language servlet technology is robust and scalable. Before CGI (Common Gateway Interface) Servlet scripting language was popular and has a server side programming language. There are lots of advantages with respect to this technology. Disadvantages are also discussed below.

In the servlet API there are lots of interfaces and classes like Servletm HttpServlet, GenericServlet, ServletRequest, ServletResponse etc.

What is a Servlet?

  1. There are lots of ways servlet can be described depending on the context.

  2. For creating web application, servlet technology is used.

  3. For providing lots of interfaces and classes including documentations, Servlet is an API.

  4. For implementing or for creating any servlet, servlet is an interface.

  5. For extending the capabilities, servlet is class of the servers and respond to the incoming request for responding various requests

  6. It is a web component deployed on the server to make dynamic web page.

Explain Web application

You can access web application from the web. Web components like Servlet, Filter, JSP, etc are used to make web application. In web server the web components typically execute and respond to HTTP request.

CGI (Common Gateway Interface)

The webserver is enabled by the CGI technology for calling an external program and pass HTTP request information to the request placed in the process of external program. There is a new process for each requests.

Disadvantages of CGI

In CGI technology there are lots of problems

  1. If the client number increases it takes lots of time for sending the response.
  2. A process is started and web server is limited to start processes for each request.
  3. Platform dependent language is used by it example C, C++, perl.

Advantages of Servlet

CGI has lots of advantages over servlet. Threads are created by the web container for multiple requests handling to the servlet. There are lots of benefits of Processes as a common area is shared by them, lightweight, communication cost between the threads are low. Here are the basic benefits of servlets:

  1. Better performance: For each request and not process a thread is created.
  2. Portability: Java language is used by it.
  3. Robust: JVM manages the servlets so we do not need to worry about memory leak, garbage collection etc.
  4. Secure: Java language uses it. There are lots of Jobs in Java to make your career in this field.

About the Author

I am author where i am writing for may products.

Rate this Article
Leave a Comment
Author Thumbnail
I Agree:
Comment 
Pictures
Author: Priya Arrora

Priya Arrora

Member since: Aug 29, 2017
Published articles: 3

Related Articles