Results 1 to 6 of 6

Thread: Difference between JSP and CGI

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    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).

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    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.

  4. #4
    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.

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    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.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    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.

Similar Threads

  1. What is difference between RAM and ROM?
    By Harper 21 in forum Motherboard Processor & RAM
    Replies: 5
    Last Post: 30-01-2010, 09:00 AM
  2. Difference between OOP and AOP
    By Sarfaraj Khan in forum Software Development
    Replies: 5
    Last Post: 20-01-2010, 09:20 AM
  3. Difference between jsp and asp.net
    By Crespin in forum Software Development
    Replies: 3
    Last Post: 24-11-2009, 06:57 AM
  4. Difference between wap and wep
    By Soggy Bottom in forum Networking & Security
    Replies: 3
    Last Post: 23-11-2009, 09:34 AM
  5. Difference between IDE and ATA
    By LALETTE in forum Hardware Peripherals
    Replies: 3
    Last Post: 09-01-2009, 10:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,696,476.43052 seconds with 17 queries