File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes HTTP Status 405 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTP Status 405" Watch "HTTP Status 405" New topic
Author

HTTP Status 405

Pranav Pal
Ranch Hand

Joined: Nov 04, 2007
Posts: 74
What causes the following error:
HTTP Status 405 - HTTP method POST is not supported by this URL

Thanks in advance


Hakuna Matata!
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
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

Joined: Apr 15, 2006
Posts: 418
Once we have overridden doPost() of GenericServlet,how does it gets called
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
It gets called as the result of submitting an HTML form that has an attribute method="POST".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 405
 
It's not a secret anymore!