Chapter 4. Servlet Container Model
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
, andPUT
, identify the corresponding method in theHttpServlet
class.
The HTTP methods
GET
,POST
, andPUT
are how browsers and Web servers communicate the purpose of communication. AGET
simply wants to retrieve a page without providing much information. APOST
, however, can package lots of form or file information with its request. APUT
is for uploading a file. TheHttpServlet
class has a corresponding method for each HTTP method, includingdoGet()
,doPost()
, anddoPut()
.
1.2 For each of the HTTP methods,
GET
,POST
, and
Get Sun™ Certification Training Guide (310-080): Java™ 2 Enterprise Edition (J2EE™) Web Component Developer Exam now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.