Re: HTTP Status 405 - HTTP method GET is not supported by this URL
- From: joshua <chambers.joshua@xxxxxxxxx>
- Date: 26 Apr 2007 16:43:14 -0700
On Apr 26, 2:45 pm, Lew <l...@xxxxxxxxxxxxxxxxxxxx> wrote:
joshua wrote:
I have gotten this error now on tomcat6 and on resin3 with this
It makes the post a bit easier to read if you quote the error message in the
text of your message as well as the subject line.
servlet. It's just a very simple servlet, inheriting
javax.servlet.http.HttpServlet. I can finally reach the servlet, but
am getting this error
about the GET method, which is odd, because my servlet uses doPost and NOT doGet!
Actually, your servlet most emphatically does use doGet(), any time it
receives a GET message. You don't control that, because it's up to the client
whether it sends a GET or a POST.
You don't provide a doGet() method. That means you are inheriting the
implementation of doGet() from HttpServlet.
<http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServlet....)>
What was the message you got, exactly?
--
Lew
You... are so incredibly right, I finally get that. I added an empty
doGet() and it works. Thank you!
Joshua
.
- References:
- Prev by Date: Re: HTTP Status 405 - HTTP method GET is not supported by this URL
- Next by Date: SOS PLEASE FRIENDS OF JAVA
- Previous by thread: Re: HTTP Status 405 - HTTP method GET is not supported by this URL
- Next by thread: Re: HTTP Status 405 - HTTP method GET is not supported by this URL
- Index(es):
Relevant Pages
|
|