This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets


Paul Wetzel
Ranch Hand

Joined: Nov 02, 1999
Posts: 107
following is from javadoc for HttpServletResponse:
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
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13007
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.

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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
It's not a secret anymore!