GeeCON Prague 2014*
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


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: 417
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: 61298
    
  66

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: 417
Bear Bibeault wrote:Remove them. The default action is to emit a "not supported" error.

thanks very much!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: super call in doGet and doPost are necessary