• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Marcus Greens's Mock Test 3 Q17

 
chandan kumar mitwaa
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
17

Which servlet methods are used by servlets to process the data in form fields?
Choose at least one answer.
A. init (Incorrect)
B. servlet (Incorrect )
C. doForm (Incorrect )
D. doGet (Incorrect )
E. doFields (Incorrect )
F. doPost (Correct)

Why is option D. incorrect, someone please explain?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is option D. incorrect, someone please explain?

It should be correct. If the form's method is "GET", then a GET request will be started, and doGet will be called.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic