What is Generic Servlet and how it is different from Http
Servlet?

Answer Posted / luqman khan

HttpServlet is used to handle only http request & response.
where as GenericServlet is used to handle any type of requests.
Http servlet sends large data and its protocol ndependent
whereas GenericServlet sends a small data
Http servlet support cookies sessions.whereas genericservlet
does not support sessions.
Http servlet is protocol dependent.
it is a sub class of GenericServlet.
HttpServlet is a Abstract class.


Answer by M:luqman wazir bcs(5th semester) icup.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between server and servlet?

780


What is the difference between the http servlet and generic servlet?

858


How can the session in servlet be destroyed?

856


Why session tracking is needed?

766


What is preinitialization of a servlet?

768


What is session tracking?

885


What is setattribute in servlet?

749


If servlet receives multiple requests, how many objects will it create?

1050


What is a server side include (ssi)

764


If my browser does not support cookie, and my server sends a cookie instance what will happen?

826


What is the life-cycle of servlets?

842


What is the difference between using getSession(true) and getSession(false) methods?

787


What are the types of servlet?

885


Define servlet mapping?

880


Why servlet is faster than jsp?

752