What are the methods in HttpServlet?

Answer Posted / abdul

I just wanted to update my answer:-

Methods in HttpServlet

Http methods which can be implemented by Service method are:
---------------------
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.

Other methods:
Service(HttpServletRequest,HttpServletResponse)
getLastModified(HttpServletRequest)
Service(ServletRequest,ServletResponse)

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why doesn’t a servlet include main()? How does it work?

847


What are the types of an http request?

785


How can you push data from an Applet to a Servlet?

812


What is the dispatcher servlet?

713


Describe the phases of servlet lifecycle?

799


What are all the advantages of servlet over cgi?

782


What is the workflow of a servlet?

884


Which HTTP method is non-idempotent?

788


What do you mean by scope object and what are its types?

759


What is the use of welcome-file-list?

744


Which protocol will be used by browser and servlet to communicate

752


What is meant by Servlet? What are the parameters of service method?

782


What are the differences between servlet context vs servlet config?

795


Define declaration.

796


What is servlet initializer?

682