• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doService calls doGet but if it is not defined?

 
Jagdeep gupta
Greenhorn
Posts: 3
  • 0
  • 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
Marshal
Posts: 33691
316
Eclipse IDE Java VI Editor
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic