Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bailey Evans   on Mar 21 In Java Category.

  
Question Answered By: Woodrow Jones   on Mar 21

doGet() and doPost() are called in different
ocassions, when you call an URL you normally make a
GET request, when you put a form and set the <FORM
METHOD=POST> then you have a post request. Forms can
be either get or post, so to process a form request
yuou may program both methods or you mey loose some
requests
so, the easieste way is to call doPost() from doGet()
or viceversa or point both of them to your function.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Why doGet() method inside a doPost() method? Or get search suggestion and latest updates.


Tagged: