When you use the Create HTTP Servlet wizard to create an HTTP servlet, the wizard creates a Java class for the servlet. This class contains an initialization method and the HTTP methods you specified for the servlet when using the wizard. To customize the servlet, you must implement the servlet's HTTP methods.
The following methods are available from the Create HTTP Servlet wizard:
doGet handles GET, conditional GET, and HEAD requests
doPost handles POST requests
doPut handles PUT requests
doDelete handles DELETE requests
service handles Service requests
JDeveloper creates skeleton code for these methods. These methods take
two objects as arguments:
HttpServletRequest and
HttpServletResponse.
You can also pass in additional parameters and get them programmatically
by calling the ServletRequest.getParameter method within
your servlet's Java code.
Using the HTTPServletRequest Object
Using the HTTPServletResponse Object
Copyright © 1997, 2004, Oracle. All rights reserved.