Servlets and HTTP Servlets


Servlets
Http Servlets
It protocol independent
This is protocol dependent(HTTP).
Created by extending GenericServlet Class
Created by extending HttpServlet class
Overrides service() method to process client request and to generate response
Override doGet/doPost (or doGet, doPost, doPut, doDelete etc.) method(s) to process client request and to generate response
Method service() is invoked for all incoming requests.
Specific method is invoked one of these; doGet, doPost, doPut, doDelete, doTrace etc. depending on the request’s method.


No comments:

Popular Posts