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
What is the difference between Difference between doGet() and doPost()?
Which method is called when reference variable is passed in system.net?
What's the difference between servlets and applets?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
Which protocol will be used by browser and servlet to communicate
What is the major difference between servlet and applet?
What is difference between jsp and servlet?
Is servlet thread safe?
What's the advantages using servlets than using cgi?
What methods do you use in servlet - applet communication?
What are different ways for servlet authentication?
When a servlet accepts a call from a client, it receives two objects. What are they?
How can we refresh automatically when new data has entered the database?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
Explain web application directory arrangement?