What is the Difference Between CGI, ASP, Servlets and JSP?

CGI:- (common gateway interface):

CGI is a server side technology which was designed completely on the basis of c-technology and scripting languages.

‘C’ is a process based technology so that CGI technology is also a process based technology. If we deploy any CGI component at server machine then for every new request came from client, CGI container will create a separate process.

In the above context if we increase no.of requests then no.of processors will be created at server machine. This approach will increase burden to the server machine. It causes quality of the web application will be degraded.

web technology


Servlets:- 

Servelet is a server side technology which was designed completely on the basis of java technology. Java technology is a thread based technology. So that servlet technology is also a ‘Thread based technology’.

If we deploy any servlet at server machine, for every new request take from client a separate thread will be created on servlet object. In the above context if we increase no.of  requests then no.of threads will be created at server machine.

Thread is a light weight process (or) component that’s why server machine should not have any burden to handle multiple no.of threads.

In servlets we cannot separate both presentation logic and business logic servlets are good at pick up the request and process the request.

In model view controller (MVC) based web applications where we should use servelts as controller and ‘JSP’ as view port.

If we make any modifications on to the existed servlet then we should go for explicitly re-compilation and reloading.

mvc model

JSP (Java server pages):- 

JSP is a server side technology which was designed completely on the basis of java technology.

JSP does not require any java knowledge. You have sufficient presentation skill or web designing. JSP’s are able to separate both presentation logic and business logic.

JSP’s are good at the time of delivering dynamic response to the client machine with very good look and feel.

If we made any modifications on to the existed JSP page then it is not required to go for recompilation and reloading explicitly.Why because JSP pages are auto compile and auto loaded.

ASP (active server pages):- 

 ASP is Microsoft first server side script engine for dynamically generated web pages.

ASP is used to create and run dynamic web server applications. With ASP you can combine html pages and script commands. Dynamically edit, change (or) add any content of a web page.

Access any data (or) data bases and return the results to a browser. Customize a web page to make it more useful for users.

The advantages of ASP is those simplicity and speed provide security i.e, ASP code cannot be viewed from the browser. ASP programming minimize the network traffic.

Related

Web Technology 982788349276270320

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item