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

How many servlet objects are created?

1069


What is the difference between genericservlet and httpservlet

1093


What are the uses of servlets?

1140


What's the servlet interface?

1084


What is the procedure of invoking different servlet in a different application?

1021


Explain the war file?

1069


What is the difference between a generic servlet and http servlet?

998


Explain their methods? Tell me their parameter names also have you used threads in servlet?

1043


What is the use of servletconfig interface?

1049


Can you refresh servlet in client and server-side automatically?

1077


What is generic servlet class?

1073


Explain web container.

1030


How to get the server information in a servlet?

1171


What are the advantages of Servlet over CGI?

1149


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

1271