| Author |
servlet pblm
|
sunitha thejaswi
Greenhorn
Joined: Nov 14, 2005
Posts: 29
|
|
HI everybody I am new to this forum.I have just started studing Head first servlets and Jsp. I have installed eclipse and downloaded tomcat. i even added tomcat plugin to eclipse. I tried the first beer example. when i tried to run i got HTTP Status 405 - HTTP method POST is not supported by this URL -------------------------------------------------------------------------------- type :Status report message :HTTP method POST is not supported by this URL description The specified HTTP method is not allowed for the requested resource (HTTP method POST is not supported by this URL). -------------------------------------------------------------------------------- Apache Tomcat/5.0.28 error please let me know where i am going wrong. thanks a lot in advance sunitha
|
 |
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
|
|
|
It's telling you that you did not implement doPost in your servlet and the form you are submitting specified a method of "POST"
|
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
|
 |
vipul patel
Ranch Hand
Joined: Oct 16, 2005
Posts: 146
|
|
|
In your servlet, I believe you have only implemeted doGet(..) method. But In HTML form, you are submitting a form data using POST method, so when container calls a service() method of GenericServlet class, it tries to find doPost() method. (Because the type of request coming from browser is POST). But doPost() does not exist so you are getting that error.
|
 |
 |
|
|
subject: servlet pblm
|
|
|