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
Which protocol will be used by browser and servlet to communicate
When should you prefer to use doget() over dopost()?
When a servlet accepts a call from a client, it receives two objects. What are they?
How do you configure a centralized error handler in servlets?
What is the functionality of actionservlet and requestprocessor?
What is the workflow of a servlet?
Is servlet thread safe?
What is servlet and its advantages?
What is ServletContext object?
What is servlet in web technology?
Why is a constructor needed in a servlet even if we use the init method?
What are the life-cycle methods for a servlet?
What methods do you use in servlet - applet communication?
How many objects of a servlet is created?
List out difference between a JavaBean from a Servlet?