What are the methods in HttpServlet?

Answer Posted / suresh kumar pathak

doGet():Ask to get the thinng to get in requested URL
doPost():Same as GET method with extra information send in
body part.
doHead():Only header partof response without any body section.
dodoTrace():Ask for loopback of request message.(For testing)
doPut():say to put the enclosed info in requested URL.
doelete():sat to delete the info in requested URL.
doOption():ask for list of option in requested URL needed.
doConnect():say to connect for the purpose of tunnelling(to
pass servlet through firewall).Not a method of httpservlet.

Is This Answer Correct ?    33 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is a constructor needed in a servlet even if we use the init method?

798


How can the referrer and the target urls be used in servlet?

719


What are the jobs performed by servlets?

767


Why are http servlets used in programming?

736


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3107


What do you mean by default initialization in java servlet?

845


Is tomcat a servlet container?

774


What are the advantages of cookies?

801


What are the differences between servlet context vs servlet config?

803


How do you find out what client machine is making a request to your servlet

746


What is a web container and what is its responsibility?

712


What is the servlet?

826


How do you communicate in between Applets and Servlets?

803


Difference between get and post in java servlets?

750


What is servlet and its life cycle?

809