jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android 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: 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: 60804
    
  65

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
 
Similar Threads
GET Method Working But POST is not
java don't compile my servlet.
Error In JSP Page
Can we Have Write Service,doGet,doPost method implementation in a single servlet
Servlets example