Java CGI Lecture Notes by Theodoros Anagnostopoulos

Java CGI Lecture Notes by Theodoros Anagnostopoulos
Slide Note
Embed
Share

The Common Gateway Interface (CGI) in Java is a standard for writing programs to interact with a web server and browser. Through CGI, developers can deliver dynamic content like HTML to browsers. CGI programs, which can be written in any language including Java, are widely used for various web applications such as search engines, guest books, and interactive forums. These programs interpret and process information, generating responses for clients. They can perform simple tasks like file manipulation or complex actions like querying databases. CGI programs must include a header to specify the type of content being generated and are often used to create HTML output. Explore the world of Java CGI programming through online tutorials and videos for practical learning.

  • Java
  • CGI programming
  • Web development
  • Interactive applications

Uploaded on Mar 10, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Java CGI Lecture notes by Theodoros Anagnostopoulos

  2. Java CGI Write CGI programs in Java. Learn how to program the server side of your Web applications through Java.

  3. Java CGI The Common Gateway Interface (CGI) is a standard for writing programs that can interact through a Web server with a client running a Web browser. These programs allow a Web developer to deliver dynamic information (usually in the form of HTML) via the browser.

  4. Java CGI A CGI program can be written in any language, including Java, that can be executed by your Web server. CGI programs are commonly used to add search engines, guest-book applications, database-query engines, interactive-user forums, and other interactive applications to Web sites.

  5. Java CGI In very basic terms, a CGI program must interpret the information sent to it, process the information in some way, and generate a response that will be sent back to the client. Most of the input to a CGI program is passed into it through environment variables. The rest of the input (if any) is passed into a CGI program as standard input that can be read directly by your program.

  6. Java CGI The processing can be as simple as appending information to a file or as complex as requesting data from a database.

  7. Java CGI Since a CGI program can return a myriad of document types, a CGI program must place a short header (ASCII text) on its output so that the client will know how to interpret the information it generates. Most commonly, CGI programs generate HTML. Following the header, a CGI program simply generates the body of the output in its native form.

  8. Java CGI Online Tutorial: http://www.javaworld.com/article/2076863/java- web-development/write-cgi-programs-in- java.html Video Tutorial: http://www.youtube.com/watch?v=mPLYJ6SmyXo

Related


More Related Content