File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes super call in doGet and doPost are necessary Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "super call in doGet and doPost are necessary" Watch "super call in doGet and doPost are necessary" New topic
Author

super call in doGet and doPost are necessary

Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 420
Hi!

When I create a new servlet in Eclipse, it automatically creates a template.

My doubt is why doGet and doPost call the super correspondents? I trying to find the source code to see what it does, but I didn't find yet, so I don't know if it is really necessary.
I'm using servlet-api.jar from Tomcat v5.5.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62139
    
  68

Remove them. The default action is to emit a "not supported" error.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 420
Bear Bibeault wrote:Remove them. The default action is to emit a "not supported" error.

thanks very much!
 
Don't get me started about those stupid light bulbs.
 
subject: super call in doGet and doPost are necessary