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
What is difference between server and servlet?
What is the difference between the http servlet and generic servlet?
How can the session in servlet be destroyed?
Why session tracking is needed?
What is preinitialization of a servlet?
What is session tracking?
What is setattribute in servlet?
If servlet receives multiple requests, how many objects will it create?
What is a server side include (ssi)
If my browser does not support cookie, and my server sends a cookie instance what will happen?
What is the life-cycle of servlets?
What is the difference between using getSession(true) and getSession(false) methods?
What are the types of servlet?
Define servlet mapping?
Why servlet is faster than jsp?