November 2002
Intermediate to advanced
544 pages
11h 10m
English
OBJECTIVES
This chapter covers the following objectives listed by Sun in “Section 1—The Servlet Model” and “Section 3—The Servlet Container Model.”
1.1 For each of the HTTP methods, GET, POST, and PUT, identify the corresponding method in the HttpServlet class.
The HTTP methods GET, POST, and PUT are how browsers and Web servers communicate the purpose of communication. A GET simply wants to retrieve a page without providing much information. A POST, however, can package lots of form or file information with its request. A PUT is for uploading a file. The HttpServlet class has a corresponding method for each HTTP method, including doGet(), doPost(), and doPut().
1.2 For each of the HTTP methods, GET, POST, and
Read now
Unlock full access