Saturday, July 9, 2011

What is Servlet Class Hierarchy

The Java Servlet class hierarchy is given below. Like all java classes GenericServlet also inherits from Object class. Apart from GenericServlet and HttpServlet classes, ServletRequest, HttpServletRequest, ServeltResponse and HttpServletResponse are also helpful in writing a servlet. As you can guess ServletRequest & ServletResponse are used in conjunction with GenericServlet. These classes are used for processing protocol
independent requests and generating protocol independent responses respectively.

What is Servlet Class Hierarchy, What is Java Servlet Life Cycle,Stages of java Servlet Lifecycle, what are different java servlet lifecycle stages, what is java servlet,  what is java, java tutorial, java servlet tutorial, java ee tutorials, explain java servlet life cycle, servlet request responce, java web action, java web development, javawebaction, java web applications development

HttpServletRequest & HttpServletRespose are used for processing HTTP protocol specific requests and generating HTTP specific response. Obviously these classes will be used in conjunction with HttpServet class, which means you are making a HTTP protocol specific servlet.

Related Topics:
What is Java Servlet
What is Java Servlet Life Cycle and how to explain it
What are Java Servlet different HTTP Request Handling Methods


  1. Servlet technology is used to create web application (resides at server side and generates dynamic web page).

    Servlet technology is robust and scalable because of java language. Before Servlet, CGI (Common Gateway Interface) scripting language was popular as a server-side programming language. But there was many disadvantages of this technology. We have discussed these disadvantages below.

    There are many interfaces and classes in the servlet API such as Servlet, GenericServlet, HttpServlet, ServletRequest, ServletResponse etc.
    Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.
    java training institute in chennai |
    java training center in chennai


Please enter relevant question and information.