• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question On doXXX methods

 
rohit sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All

If the HttpServlet abstract class implements all the doXXX methods, why is it an error if a 'get' request is made and there is no doGet() in the servlet? Why doesn't the inherited doGet() run and display a empty page?

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because that's not the what the Specification dictates. The Specification dictates that the not implemented error is thrown.
 
rohit sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was quick! Thank you for the answer. That question has been bothering me for a while now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic