This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1449
    
    6

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
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
Are you certain that the doPost method in your servlet actually overrides the other method? Are you using the @Override annotation?


Ping & DNS - my free Android networking tools app
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
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
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: 60785
    
  65

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding unsupported post method
 
Similar Threads
Exam question.
servlet pblm
Problem in HFSJ Ch3,help~~
HF p176 example compile error
HTTP Status 405 - HTTP method GET is not supported by this URL