• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Status 405

 
Pranav Pal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What causes the following error:
HTTP Status 405 - HTTP method POST is not supported by this URL

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That message is actually very much to the point: you're using HTTP POST to access an URL that does not support POST. If the URL is mapped to a servlet, it most likely means that you have not provided an implementation of the doPost method. (The doPost method inherited from GenericServlet generates this error.)
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once we have overridden doPost() of GenericServlet,how does it gets called
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It gets called as the result of submitting an HTML form that has an attribute method="POST".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic