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

Is tomcat a servlet container?

1037


What are the objects involved when a servlet receives a call from client?

1034


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1060


Explain the difference between servletconfig and servletcontext in servlet?

1033


How does tomcat servlet container work?

1074


What is the difference between the include() and forward() methods?

1077


What is URL Encoding?

1172


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1055


What is servlet and its advantages?

1046


Is servlet a controller?

1003


What is difference between GenericServlet and HttpServlet?

1157


Explain web container.

1026


What is the difference between Difference between doGet() and doPost()?

1290


Explain servlet.

1038


What do you mean by url pattern in servlet?

1112