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
Who is responsible for writing a constructor?
What is a servlet context object?
What’s the difference between sendredirect and forward methods
What are the differences between servlet context vs servlet config?
What do you mean by filter in servlet?
What is cookies in servlet with example?
Can you send an authentication error from a servlet?
What must be implemented by all servlets?
What is URL Encoding?
What is the difference between 2 types of servlets?
What is setattribute in servlet?
What are the objects involved when a servlet receives a call from client?
What is java servlet?
Which interface must be implemented by all servlets?
Define context initialization parameters.