• Post Reply Bookmark Topic Watch Topic
  • New Topic

doService calls doGet but if it is not defined?

 
Jagdeep gupta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the doService method is overwritten and it is made to call doGet or say doPost and that method is not defined, what will be the result..?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36027
432
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing happens. The HttpServlet class provides a "do nothing" doGet() and doPost() for you. It also provides default "do nothing" for other methods.

From the browser's point of view, I believe the user just sees a white page since the request never returns anything from the server.
 
my overalls have superpowers - they repel people who think fashion is important. 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!