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 can I send user authentication information while making URL Connection?

1051


Define the lifecycle for executing a jsp page.

1135


What are the life cycle methods of the servlet?

1127


Why do we use sendredirect() method?

1017


How can we refresh automatically when new data has entered the database?

1160


Write a program to show the functionality of doget and dopost method?

1255


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

1308


Can we override destroy method in servlet?

1034


What is the functionality of actionservlet and requestprocessor?

1138


What is the use of servletconfig interface?

1085


What do you mean by the servlet chaining?

1143


Define the servlet mapping.

1115


Does servlet have main method?

1240


What do you mean by request dispatcher in servlet? Also explain its methods.

1208


Can a jsp be called using a servlet?

1196