Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How do you run a servlet?

1049


What are the types of servlets? Explain

1247


Which interface must be implemented by all servlets?

1328


Why servlet is used as controller ? Not JSP? I want complete explation?

1121


What is the difference between servlet and filter?

934


Servlet is pure java object or not?

1179


How can an existing session be invalidated?

1153


What is called servlet mapping?

1060


What is the web server used for running the Servlets?

996


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

1099


What do you mean by deployment descriptor?

1026


Explain the custom jsp tags and the beans.

1052


How are filters?

1029


How to get the actual path of servlet in server?

1203


How servlet is created?

1181