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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
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.)


Android appsImageJ pluginsJava web charts
Raj Kumar Bindal
Ranch Hand

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

Joined: Mar 22, 2005
Posts: 35241
    
    7
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
 
Similar Threads
Enthuware Mock Exam Question
Problem getting servlets working
UrlRewriting+servlets -Error
Unable to direct to page after login
Pass radio button to servlet