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
What is the difference between 2 types of servlets?
What is cookie? Why is cookie used?
Tell us something about servletconfig interface.
What are the kinds of http requests?
What is life cycle of Servlet?
What is the functionality of actionservlet and requestprocessor?
What is ServletContext object?
Can you call a jsp from the servlet?
What do you mean by scope object and what are its types?
What’s the difference between genericservlet and httpservlet?
What exactly is a servlet?
Why is http protocol called as a stateless protocol?
What are the different methods involved in the process of session management in servlets?
What are session variable in servlets?
What is a servlet-to-servlet communcation?