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...

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

Write a program to show the functionality of servlets.

966


Describe the phases of servlet lifecycle?

1028


What are all the ways for session tracking?

1089


How does java thread pool work?

1020


Explain web application directory arrangement?

999


What’s the difference between genericservlet and httpservlet?

1021


What is meant by a servlet?

1044


What is the difference between Servlets and Applets?

967


What is the dispatcher servlet?

923


When a servlet accepts a call from a client, it receives two objects. What are they?

1189


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

975


What is the process for chaining servlet?

994


Explain the difference between servlet and cgi?

1106


what is servlet chaining?

1041


What are the ways to handle multi-threading in servlets?

1021