A subclass of HttpServlet must override at least one method, usually one of these:
doGet, if the servlet supports HTTP GET requests
doPost, for HTTP POST requests
doPut, for HTTP PUT requests
doDelete, for HTTP DELETE requests
init and destroy, to manage resources that are held for the life of the servlet
getServletInfo, which the servlet uses to provide information about itself
PMP CSQA SCJP SCWCD SCBCD INS 21 INS 23
.doGet method not found
PMP CSQA SCJP SCWCD SCBCD INS 21 INS 23
Meng Yi
Originally posted by Sekhar Kadiyala:
But as a continuation of this discussion, if the methods are implemented (for example doGet) then, if my servlet doesn't have doGet method and i am trying to access the servlet thru address bar (which will invoke the HTTP method GET), then technically i shouldn't be getting the error as my servlet extends HttpServlet. But it does throw the error saying doGet method not found
OK, there are "compiler errors" and "HTTP errors".
PMP CSQA SCJP SCWCD SCBCD INS 21 INS 23
Consider Paul's rocket mass heater. |