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 java servlet session?
What is servlet looping or chaining?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What is servlet in web technology?
What do you mean by web applications?
What is a servlet?
How can the session in servlet be destroyed?
What is a servlet context?
What is the GenericServlet class?
How do you configure a centralized error handler in servlets?
what is multiple server?
How forward () method is different from send redirect () method?
How can we achieve transport layer security for our web application?
Which method of the httpservletrequest object is used?