Java HttpServlet Class
HttpServlet class: HttpServlet class extends the GenericServlet. It is protocol-dependent. public abstract class HttpServlet extends GenericServlet HttpServlet class is in javax.servlet.http package (javax.servlet.http.HttpServlet). Methods of HttpServlet class: 1. service(ServletRequest req,ServletResponse res): Dispatches the requests to the protected service method. It converts the request and response object into HTTP type before dispatching the request. Syntax: public void service(ServletRequest req, ServletResponse res) … Read more