• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Status 405 - HTTP method POST is not supported by this URL  RSS feed

 
Abhishek Boppudi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a novice.I had written a small program.

index.html


Sample1.java File


web.xml



I'm Getting a "HTTP Status 405 - HTTP method POST is not supported by this URL" message. I also added to web.xml
Can you explain me where did i went wrong ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One problem is:


ALL classes used in servlets MUST be in a package and the compiled class file stored accordingly. The reason being that without a package the JVM looks in the "current" directory, something you have no control over in the servlet environment.

Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And, check your spelling.
 
Abhishek Boppudi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you William Brogden && Bear Bibeault....
Go it ... I've written doPOST() instead of doPost().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!