Monday, March 10, 2014

[OCEJWCD ] Topic #1 - Introduction to Java Servlets

Describe web applications, CGI, and the role of Java

Java Web application:

Web application is an computer application which is then deployed on the web server, the user can access that application via the Internet or an intranet using a browser. Java has strong support for building web applications using Java Enterprise technology. A Java web application is a collection of  HTML pages, XML files, webservices, servlets, JSPs Java classes and jars to create dynamic web project.

Java CGI - Common Gateway Interface:

CGI is a script to receive the request and generate a response for transferring dynamic information between server and client. 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. Most of the input to a CGI program is passed into it through environment variables.

Role of Java:

Following different roles are divided based on the Servlet performance:
  • Receive the explicit data sent by the client. 
  • Receive the implicit HTTP request data sent by the browser. 
  • Generate the results.
  • Dispatch the explicit information to the client and Dispatch the implicit HTTP response data.

No comments:

Post a Comment