• Post Reply Bookmark Topic Watch Topic
  • New Topic

JWebplus : Question ID :994774357171

 
Nazmul Huda Sarkar
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What HTTP method and corresponding HttpServlet method is used when a user clicks on "Submit" button of any standard Form displayed by a browser?
They answered POST, doPost(...,...)
But how do we know ? It may be GET, doGet(...,...) also... isn't it ?
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3891
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The full question is:
What HTTP method and the corresponding HttpServlet method is used when a user clicks on the Submit button of a FORM used for capturing username/password?
The last part gives the clue that POST should be used in the form.
 
Nazmul Huda Sarkar
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree..but there is no "should" in the question. Programming does not relay on "assumtion"/"should"...
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!