The moose likes Tomcat and the fly likes regarding unsupported post method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "regarding unsupported post method " Watch "regarding unsupported post method " New topic
Author

regarding unsupported post method

Neha Aggarwal
Greenhorn

Joined: May 06, 2010
Posts: 11
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

Joined: Jan 08, 2009
Posts: 1508
    
    5

see if this helps

http://forums.sun.com/thread.jspa?threadID=506192


Swastik
Neha Aggarwal
Greenhorn

Joined: May 06, 2010
Posts: 11
i have tried the http-method tag but the problem persists..
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Are you certain that the doPost method in your servlet actually overrides the other method? Are you using the @Override annotation?
Neha Aggarwal
Greenhorn

Joined: May 06, 2010
Posts: 11
no actually i thought i will not require it. its a very normal application
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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

Joined: Jan 10, 2002
Posts: 63202
    
  69

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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: regarding unsupported post method
 
jQuery in Action, 3rd edition