• Post Reply Bookmark Topic Watch Topic
  • New Topic

JWebplus : Question ID :994774357171  RSS feed

 
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 Foreman
Posts: 3991
32
  • 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"...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!