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 is Servlet Class Hierarchy What is Servlet Class Hierarchy Reviewed by Anonymous J on 22:31:00 Rating: 5
Powered by Blogger.