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
Can you use javascript in servlets?
What is ServletContext object?
Can you explain in detail 'javax.servlet' package?
How can you push data from an Applet to a Servlet?
What is the importance of init() method in Servlet ?
What is the difference between CGI and Servlet?
Explain the difference between jsp and servlet?
What are different ways for authentication of servlet?
How to make sure a servlet is loaded at the application startup?
What do you mean by url pattern in servlet?
Which HTTP method is non-idempotent?
How can we achieve transport layer security for our web application?
What is servlet collaboration?
Explain load on start-up and its importance?
What do you mean by filter in servlet?