why are extending GenericServlet and why are extending
HttpServlet explain?

Answer Posted / nishidh soni

if the request from the is HTTP specific the we are extending HTTPServlet and if the request if from protocol independent then we are extending GenericServlet

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we invoke another servlet in a different application?

927


Explain jsessionid?

804


Differentiate between the get and post method

796


What is the type of method for sending request from http server?

797


What’s the difference between forward() and sendredirect() methods?

785


Can we override servlet service method?

827


Which method of the httpservletrequest object is used?

777


Which are the different ways you can communicate between servlets?

742


What are the new features added to servlet 2.5?

836


Is it possible to have a constructor inside the servlet?

740


What is the difference between the http servlet and generic servlet?

873


What is the element?

780


What is called Session Tracking?

836


How to get the current httpsession object?

874


Why do we use sendredirect() method?

744