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
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: 60057
    
  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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: super call in doGet and doPost are necessary
 
Similar Threads
Error In JSP Page
java don't compile my servlet.
Servlets example
Can we Have Write Service,doGet,doPost method implementation in a single servlet
GET Method Working But POST is not