Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Difference between JSP and CGI

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-03-2010
Member
 
Join Date: Jan 2010
Posts: 70
Difference between JSP and CGI
  

Hi All,

I am BSc(IT) student, and currently studying the JSP concepts of the advanced java programming. I have sound knowledge about the JSP, but don't know the difference between the JSP and CGI. I am totally confused about this differentiation. If you know any difference among JSP and CGI, then please try to share it me. You any help would greatly appreciable.

Reply With Quote
  #2  
Old 10-03-2010
Member
 
Join Date: May 2008
Posts: 2,383
Re: Difference between JSP and CGI

FastCGI is a development based on CGI which does run the CGI program only once, not every application concerned, this technique requires a small library that was developed for the main languages used (C, Perl ... ). Another solution is to incorporate language directly into the HTTP server as modules, this requires an adaptation of the much heavier shells and is specific to HTTP server. This is the case with Apache for commonly used languages for Web applications, as PHP (configured as a module) or Perl (mod_perl).
Reply With Quote
  #3  
Old 10-03-2010
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Difference between JSP and CGI

JSPs are compiled by a compiler JSP to become Java Servlets. A JSP compiler may generate a servlet in Java Java source code which can in turn be compiled by the Java compilerOr may generate Java bytecode directly interpretable. In both cases, it is good to understand page in Java servlet.A JSP page can be separated into several parts. Static data are written into the HTTP response exactly as they appear in the source file.
Reply With Quote
  #4  
Old 10-03-2010
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Difference between JSP and CGI

One feature of CGI is to be independent of any language. Even if the Perl has historically often been used to write, it is possible to write a program CGI C, Python, Gambas, PHP in shell script shell, in VB or any other programming language. The CGI program then searches in its database all sites containing the term, create a page HTML containing the results and returns the HTTP server that will transmit the browser.
Reply With Quote
  #5  
Old 10-03-2010
Member
 
Join Date: May 2008
Posts: 2,008
Re: Difference between JSP and CGI

The JSP enables Java code as well as certain predefined actions to be added to static content. Since version 2.0 specifications, JSP syntax is completely XML. All variables that are sent by the client are passed to the CGI script After the server has added the prefix "HTTP_. Python can also be used in embedded mode (mod_python or mod_wsgi), but is more comfortable in a separate process, just like Java.
Reply With Quote
  #6  
Old 10-03-2010
Member
 
Join Date: May 2008
Posts: 2,293
Re: Difference between JSP and CGI

The CGI environment variables are variables transmitted to a program CGIBy the Web server invoking, in its execution.They provide information about the request made by the customerOn the server and also on the client itself. For example, when searching on a site that works with the CGI script will retrieve the search terms with the environment variable QUERY_STRING.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Difference between JSP and CGI"
Thread Thread Starter Forum Replies Last Post
What is difference between RAM and ROM? Harper 21 Motherboard Processor & RAM 5 30-01-2010 09:00 AM
Difference between OOP and AOP Sarfaraj Khan Software Development 5 20-01-2010 09:20 AM
Difference between jsp and asp.net Crespin Software Development 3 24-11-2009 06:57 AM
Difference between wap and wep Soggy Bottom Networking & Security 3 23-11-2009 09:34 AM
Difference between IDE and ATA LALETTE Hardware Peripherals 3 09-01-2009 10:34 AM


All times are GMT +5.5. The time now is 11:05 PM.