What are the methods in HttpServlet?

Answers were Sorted based on User's Feedback



What are the methods in HttpServlet?..

Answer / niranjanravi

doGet(),doPost(),doDelete(),doTrace()

Is This Answer Correct ?    40 Yes 9 No

What are the methods in HttpServlet?..

Answer / 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

What are the methods in HttpServlet?..

Answer / 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

What are the methods in HttpServlet?..

Answer / 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

What are the methods in HttpServlet?..

Answer / prajval

The Methods in Http Servlet are:
void doGet(),
void doPost(),
void doDelete(),
void doHead(),
void doOptions(),
void doTrace(),
void doPut(),
long getLastModified(),
void service().

Is This Answer Correct ?    12 Yes 1 No

What are the methods in HttpServlet?..

Answer / gaurav khanzode

Http Servlet methods :

1. doGet()
2. doPost()
3. doDelete()
4. doTrace()

Is This Answer Correct ?    7 Yes 2 No

What are the methods in HttpServlet?..

Answer / ashok kumar biswal

Mates,there are several methods present in HttpServlet
1.void doGet(),
2.void doPost(),
3.void doDelete(),
4.void doHead(),
5.void doOptions(),
6.void doTrace(),
7.void doPut(),
8.long getLastModified(),
9.public service(ServletRequest request,ServletResponse)

protected service method calls to the public service method.
10.protected service(HttpServletRequest request,HttpServletResponse)

protected service method calls to the doGet or doPost method according to the users requirement.

Is This Answer Correct ?    1 Yes 0 No

What are the methods in HttpServlet?..

Answer / prince singh

Guys there are several methods present in HttpServlet
1.void doGet(),
2.void doPost(),
3.void doDelete(),
4.void doHead(),
5.void doOptions(),
6.void doTrace(),
7.void doPut(),

8.long getLastModified(),
9.public service(ServletRequest request,ServletResponse)

This services method internaly call public service method
10.protected service(HttpServletRequest request,HttpServletResponse)

protected service method calls to the doGet or doPost method according to the users requirement.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Servlets Interview Questions

can i modify the data which are generated by the servlet

4 Answers  


what is servlet and what you get when we use servlets?

7 Answers   GGK Tech, Satyam,


What are the differences between servlet context vs servlet config?

0 Answers  


i have 500 jsp in my application ,with same forward name,it lokks for appropritae jsp from 1 to 500,but i want to send response to 498 page,what should i do

2 Answers   Caritor, Globerian,


Why is servlet used?

0 Answers  






What is meant by cookies?

0 Answers  


What is the workflow of a servlet?

0 Answers  


Differentiate between the get and post method

0 Answers  


What is servletconfig?

0 Answers  


What are the steps that are involved in using the httpservlet class?

0 Answers  


How to debug a servlet?

2 Answers  


Which is the methods of generated servlet?

0 Answers  


Categories