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

Explain the architechure of a servlet?

606


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

586


What is SingleThreadModel interface?

678


What is difference between get and post method?

574


What is war file?

583






How can we create deadlock situation in servlet?

853


What is meant by a web application

543


What are the types of servlet?

671


How httpservlet is different from the genericservlet?

568


What are the functions of Servlet container?

611


When to use doget() and when dopost()?

629


What mechanisms are used by a Servlet Container to maintain session information?

672


How can you create a session in servlet?

600


What are the steps that are required to handle the multi-threading?

599


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

568