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
Explain the difference between servletconfig and servletcontext in servlet?
If servlet receives multiple requests, how many objects will it create?
Explain the difference between get and post method in servlet?
Write a command to get actual path of a servlet to the server?
Which application server is best for java?
What is called Session Tracking?
What's the difference between authentication and authorization?
What are the phases of servlet life cycle?
Can we refresh servlet in client and server side automatically?
Name the different ways of session tracking.
Explain get and post.
What is the purpose of dispatcherservlet properties?
Explain the differences between jsp and servlet.
What is ServletContext object?
What do you mean by deployment descriptor?