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

Explain the difference between servletconfig and servletcontext in servlet?

569


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

829


Explain the difference between get and post method in servlet?

605


Write a command to get actual path of a servlet to the server?

541


Which application server is best for java?

557






What is called Session Tracking?

600


What's the difference between authentication and authorization?

549


What are the phases of servlet life cycle?

608


Can we refresh servlet in client and server side automatically?

591


Name the different ways of session tracking.

567


Explain get and post.

649


What is the purpose of dispatcherservlet properties?

508


Explain the differences between jsp and servlet.

544


What is ServletContext object?

645


What do you mean by deployment descriptor?

553