Java Servlets   «Prev  Next»

Lesson 11

Java Servlet Module Conclusion

This module explained what servlets are and placed them in context. You know how the Web browser and Web server work together to get information to the user. The browser sends a GET request and some request headers. The server sends some response headers and then a stream of HTML.
Many times the HTML is from a file, however, it can also be one of the following:
  1. the output of a CGI program that ran on the Web server
  2. it could be a file, with some other information included by the server, using server side includes or ASP.
  3. it could be the output of a servlet.

You know that HTTP is stateless, so that each request is independent of the requests that came before. When your browser sends a GET to the server, it doesn’t tell the server that you recently requested a related page, it only sends a GET. However, the GET request can include parameters, and smart programming on the server can use those parameters to maintain state. You have observed what CGI, SSI, and ASP are, and how they compare to servlets.
A servlet is a Java class that inherits from javax.servlet.http.HttpServlet.

Key Terms and Concepts

This module introduced you to the following key terms and concepts:
  1. ACTION Parameter: The attribute on an HTML FORM tag that names the program to be run on the server when the form is submitted by the user.
  2. CGI- Common Gateway Interface
  3. HTTP protocol:Hyper Text Transfer Protocol
  4. SSI: Server Side Includes, a technique for including a file of HTML or the output of a server-side program within another file of HTML.
  5. SSI: The opposite of stateless; describes a program that keeps track of things between separate requests from a user and can tell when two requests are from the same user.
  6. Stateless:Describes a program that treats all requests as being from complete strangers and does not keep track of any information about its users.
  7. Threads:A path of execution through a program. It's possible for two or more threads to run within a program, so that some processing can continue even while a time-consuming calculation is going on.
  8. URL:A Universal Resource Locator, such as those typed into the address bar of a browser. Example: https://www.ooportal.com.
  9. VBscript
  10. Web server
In the next module , the issues involved in the setup and configuration of a server for use with Java Servlets will be discussed.

Server Side - Quiz

Click the link below to take a quiz that deals with server-side technologies.
Server Side - Quiz