aspose file tools*
The moose likes Servlets and the fly likes SC_METHOD_NOT_ALLOWED Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "SC_METHOD_NOT_ALLOWED " Watch "SC_METHOD_NOT_ALLOWED " New topic
Author

SC_METHOD_NOT_ALLOWED

Paul Wetzel
Ranch Hand

Joined: Nov 02, 1999
Posts: 107
following is from javadoc for HttpServletResponse:
SC_METHOD_NOT_ALLOWED
Status code (405) indicating that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
what do they mean when they refer to: Request-Line & Request-URI?
thanks in advance
paul
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
I understand that this happens when you try to do things like sending a POST request to a plain HTML page. The URI requested can't handle a POST request.
The request line is the first header line in the request.
Bill
MSD
Greenhorn

Joined: Jan 22, 2000
Posts: 20
Request line means the complete HTTP request that i ssent to the server. Requested URI refers to the location of the resource/application on the server.
Yep, the previous reply is on the dot. There are other cases. For example, if u refer to a servelt froma page using POST but in the servlet, u haven't provided a doPost, only doGet. I did get this error with JRun, don't know about other Servlet engines.
Hope this helps.
-Mohammed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SC_METHOD_NOT_ALLOWED