In Which Case Genericservlet Is Useful Compare to Httpservlet
It describes protocol-independent servlet. Unlike Generic Servlet the HTTP Servlet doesnt override the service method. Exploring The Java Servlet Technology GenericServlet may be directly extended by a servlet although its more common to extend a protocol-specific subclass such as HttpServlet. . The HttpServlet class extends the GenericServlet class and implements Serializable interface. It provides http specific methods such as doGet doPost doHead doTrace etc. You may create a generic servlet by inheriting the GenericServlet class and. Static request - Request for the static webpage where the content is fixed and is same for all the users. Servlet developers typically subclass GenericServlet or its descendent HttpServlet unless the servlet needs another class as a parent. However while building a website or an online application we may want to have HTTP protocol in. HttpServelt is an abstract class it com...