What are the methods in HttpServlet?

Answer Posted / abdul

There are 7 methods present in the HttpServlet.
doGet().
doPost()
doPut().
doTrace()
doDelete()
doHead()
doOptions()

* Note :doConnect() is not present in HttpServlet. The
developers of the API didn't feel the use of doConnect in
Servlet.

Is This Answer Correct ?    29 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are session variable in servlets?

570


What is the use of httpservletrequestwrapper?

592


What is servlet in simple terms?

574


What is the inter-servlet communication?

704


Define the life cycle of a servlets.

578






What is the use of servletconfig interface?

560


How do we go with database connection and log4j integration in servlet?

710


What is java servlet?

612


Where do you define dispatcherservlet?

554


What is setattribute in servlet?

560


What do you mean by annotations in servlet?

588


What are different ways for authentication of servlet?

531


What is the difference in between the httpservlet and generic servlet?

608


Whether thread can be used in servlets?

732


What is the difference between encodeRedirectUrl and encodeURL?

607