• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding unsupported post method

 
Neha Aggarwal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using tomcat as the server and after deploying the application when i tried to run it this error is coming:



i have used doPost method in servlet and method = "POST" in the html file.
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
see if this helps

http://forums.sun.com/thread.jspa?threadID=506192
 
Neha Aggarwal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tried the http-method tag but the problem persists..
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you certain that the doPost method in your servlet actually overrides the other method? Are you using the @Override annotation?
 
Neha Aggarwal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no actually i thought i will not require it. its a very normal application
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I take that as a "no" to my second question, but I can't tell what the answer to my first question is ... ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neha Aggarwal wrote:no actually i thought i will not require it. its a very normal application

No application is too "normal" to follow good practices. Using the @Override annotation will tell you if you are properly overriding the method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic