In servlets, Why do we need both GET and POST method
implementations?

Answer Posted / abhijitbaji

if you are using HttpServlet then you have to implement
doGet() and or doPost() as per the method specified in jsp.
by default method type is "GET"

if you are using GenericServlet, you have to implement
servive()

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How servlet is created?

532


How native code can be used in a servlet?

3514


Explain the architechure of a servlet?

596


What is servlet and its use?

621


Explain servlet.

558






Explain the differences between jsp and servlet.

532


What is url encoding and url decoding

576


What is http servlet in java?

554


Is that servlet is pure java object or not?

630


Explain web container.

562


What methodology can be followed to store more number of objects in a remote server?

1808


What are its drawbacks of cgi?

559


Tell us something about servletcontext interface.

616


Explain their methods? Tell me their parameter names also have you used threads in servlet?

573


What do you mean by annotations in servlet?

575