Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Overriding HTTP methods  RSS feed

 
Ryan McClain
Ranch Hand
Posts: 153
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a rule that says you should always override at least one of both doGet() and doPost() methods. It also states that if you don't override the method, you're telling the Container that this servlet does not support HTTP POST/GET requests.

What message would one get from the server if one does not override any HTTP methods in the servlet code?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the list of HTTP status codes. Can you find which one you think you'd receive?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!