You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Esteban Aquin <ea...@ciudad.com.ar> on 2001/12/13 04:55:27 UTC
Tomcat 4.0 and Error 405 Method Get
Hi. At presente I working with
- Operative System: Solaris 8
- Server : Apache 2.0.28
- Complement: Tomcat 4.0
Utitliy a Servlet for form the inscription with method doget and following message error:
HTTP Status 405 - HTTP method GET is not supported
by this URL
type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed for the requested
resource (HTTP method GET is not supported by this
URL).
Why succeed this?
Thank
Esteban
Argentina
Re: Tomcat 4.0 and Error 405 Method Get
Posted by Scott Ahten <pi...@pixelfreak.net>.
Esteban,
Usually you receive this message because your servlet does not overide
the doGet() method of the HttpServlet base class. If you want both POST
and GET methods to perform the same task, add the following method to
your servlet.
protected void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
doPost (request, response);
}
I've found this implementation useful while debuging, but often change
the get method to return a the status of a servlet when the doPost
method is complete.
Hope this helps,
~Scott
Esteban Aquin wrote:
>Hi. At presente I working with
>
>- Operative System: Solaris 8
>- Server : Apache 2.0.28
>- Complement: Tomcat 4.0
>
>Utitliy a Servlet for form the inscription with method doget and following message error:
>
>HTTP Status 405 - HTTP method GET is not supported
>by this URL
>
>
>type Status report
>
>message HTTP method GET is not supported by this URL
>
>description The specified HTTP method is not allowed for the requested
>resource (HTTP method GET is not supported by this
>URL).
>
>Why succeed this?
>
>Thank
>Esteban
>Argentina
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>