Youtube Channel

Why Servlets to be used ?



Web applications: A web application is a collection of various programs like Html,Dhtml,javaScript,css ,jsp,Servlets,xml etc . All the web application resides in server.
Whenever we launch or deploy the web application in the server by purchasing a server space then it is called as website.

  • Before Servlets we use java.net .* package or CGI for developing web applications
  • Java.net.* package was having some limitations which are as follows:
  • Used to develop intranet applications rather than internet applications
  • Used in small scale organizations for data sharing within small distance or locally.
  • It was not accessible globally.
  • Intranet applications were having one to one communication or half duplex where as they did not support one to many communications or full duplex.
  • There was no third party support for intranet applications.
  •  The intranet applications developed using java.net package were language dependent which means that the server as well as client programs where in java only.

So, to overcome these limitations of java.net package CGI was introduced.
CGI or common gateway interface  
Cgi was the specification given by open community to develop web applications. Cgi was better than previous technologies but it was having some limitations also.
  • ·         For each and every request made by client a new process was created
  • ·         Since there exist no of process for cgi applications response time was more.
  • ·         All cgi applications were treated as heavy weight components whose processing time was more.
  • ·         Performance was degraded when more no of request are made.
  • ·         Since cgi applications were to be written in c and Perl these applications were platform dependent.

·         Applications were unsecured.

Due to the above limitations or drawbacks current web applications development using cgi is outdated or not recommended. And Servlets were introduced .




Next PostNewer Post Previous PostOlder Post Home