Share This Tutorials Via Google Plus or Facebook (Help Friends)          

                                                            

                                                 





Pinterest

Servlet Tutorial
Servlet technology is used to create web application (resides at server side and generates dynamic web page).

Servet technology is robust and scalable as it uses the java language. Before Servlet, CGI (Common Gateway Interface) scripting language was used as a server-side programming language. But there were many disadvantages of this technology. We have discussed these disadvantages below.

There are many interfaces and classes in the servlet API such as Servlet, GenericServlet, HttpServlet, ServletRequest, ServletResponse etc.

 

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 documentations.
  • 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 requests.
  • Servlet is a web component that is deployed on the server to create dynamic web page.

response

What is web application?

A web application is an application accessible from the web. A web application is composed of web components like Servlet, JSP, Filter etc. and other components such as HTML. The web components typically execute in Web Server and respond to HTTP request.
CGI(Commmon Gateway Interface)

CGI technology enables the web server to call an external program and pass HTTP request information to the external program to process the request. For each request, it starts a new process.

 

cgi

 

Disadvantages of CGI

There are many problems in CGI technology:

 

  1. If number of clients increases, it takes more time for sending response.
  2. For each request, it starts a process and Web server is limited to start processes.
  3. It uses platform dependent language e.g. C, C++, perl.

 

Advantage of Servlet

servlet

There are many advantages of Servlet over CGI. The web container creates threads for handling the multiple requests to the servlet. Threads have a lot of benefits over the Processes such as they share a common memory area, lighweight, cost of communication between the threads are low. The basic benefits of servlet are as follows:
better performance: because it creates a thread for each request not process.
Portability: because it uses java language.
Robust: Servlets are managed by JVM so no need to worry about momory leak, garbage collection etc.
Secure: because it uses java language..

Share and Enjoy

  • Facebook

                                                                                                                                                                                           



Find Us on Facebook   



Recent Posts                



(2+ Years) "JP Morgan" Hiring: UX Designer On Jan 2017 @ Bangalore (Freshers) "Vodafone" Hiring: Backend Developer On Jan 2017 @ Pune (0 - 1 Years) "WowTables" Hiring: Front End Developer On Jan 2017 @ Mumbai (0 - 1 Years) "ManavManagement" Hiring: Female Counselor On Jan 2017 @ Faridabad (Freshers) "Social Beat" Hiring: Content Specialist On Jan 2017 @ Chennai (Freshers) "Barclays" Hiring: Developer On Jan 2017 @ Pune 0 - 3 Years) "Worldindia" Hiring: Web Administrator On Jan 2017 @ Mumbai (1 - 3 Years) "Etech Global" Hiring: .NET MVC Developer On Jan 2017 @ Baroda (3+ Years) "TheLogicFactory" Hiring: .NET Application Developer On Jan 2017 @ Ahmedabad (2 - 5 Years) "Tecra" Hiring: Software Engineer On Jan 2017 @ Hyderabad (2 - 4 Years) "Mphasis" Hiring: Testing Engineer On Jan 2017 @ Bangalore (3 - 5 Years) "Wipro" Hiring: Test Engineer On Jan 2017 @ Mumbai (3 - 5 Years) "Wipro" Hiring: Developer Core Java On Jan 2017 @ Bangalore (1 - 2 Years) "Nelito Systems" Hiring: Application Support Engineer On Jan 2017 @ Mumbai (Freshers) "RBS" Hiring: Senior Test Designer LastDate: 31st Jan 2017 @ Gurgaon (Fre/Exp) "Cisco" Hiring: Business Intelligence Analyst On Jan 2017 @ Bangalore (2 - 3 Years) "Amdocs" Hiring: Software Developer On Jan 2017 @ Pune (0 - 2 Years) "Emblix Solutions" Hiring: PhotoShop Designer On Jan 2017 @ Hyderabad (0 - 1 Years) "KD Groups" Hiring: Hr Trainee On Jan 2017 @ Gurgaon (0 - 2 Years) "SavvyonWeb" Hiring: Content Writer On Jan 2017 @ Noida (0 - 1 Years) "Signa" Hiring: Jr. Web Developer/Hr Executive On Jan 2017 @ Hyderabad (Freshers) "Zen Technologies" Hiring: Software Engineer On Jan 2017 @ Hyderabad (1 - 3 Years) "Geometric" Hiring: Teamcenter QA On Jan 2017 @ Pune (1 Years) "Rudra Softech" Hiring: Content Writer On Jan 2017 @ Ahmedabad (2 - 4 Years) "RAVSoft Solutions" Hiring: Software Engineer On Jan 2017 @ Chennai

Copyright © 2010 - 2012 . All rights reserved.
Please Note: careerbuzz.in is not in any way responsible for any consequences of you applying for a job through the vacancies listed on this site. Please do thorough research before applying. We take utmost care in publishing jobs on this site. While every care has been taken to avoid mistakes and errors on the web pages, careerbuzz.in shall not be liable to any person in any manner whatsoever by reason of any error or omission which might have crept in unintentionally
www.careerbuzz.in
Hi..VOTE US?