This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes SC_METHOD_NOT_ALLOWED 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 "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: 12268
    
    1
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

Java Resources at www.wbrogden.com
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: SC_METHOD_NOT_ALLOWED
 
Similar Threads
PUT method doubt??
difference between URL and URI
WA #1.....word association
SC_METHOD_NOT_ALLOWED
Question about REST using Jersey