what is the difference between do get/dopost

Answer Posted / om shastri

doGet is called in response to an HTTP GET request. This
happens when users click on a link, or enter a URL into the
browser's address bar. It also happens with some HTML FORMs
(those with METHOD="GET" specified in the FORM tag).
doPost is called in response to an HTTP POST request. This
happens with some HTML FORMs (those with METHOD="POST"
specified in the FORM tag).

Both methods are called by the default (superclass)
implementation of service in the HttpServlet base class.
You should override one or both to perform your servlet's
actions. You probably shouldn't override service().

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between 2 types of servlets?

642


What is cookie? Why is cookie used?

578


Tell us something about servletconfig interface.

578


What are the kinds of http requests?

606


What is life cycle of Servlet?

605






What is the functionality of actionservlet and requestprocessor?

593


What is ServletContext object?

641


Can you call a jsp from the servlet?

546


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

566


What’s the difference between genericservlet and httpservlet?

526


What exactly is a servlet?

539


Why is http protocol called as a stateless protocol?

535


What are the different methods involved in the process of session management in servlets?

661


What are session variable in servlets?

564


What is a servlet-to-servlet communcation?

646