aspose file tools*
The moose likes Servlets and the fly likes default constructor in HttpServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "default constructor in HttpServlet" Watch "default constructor in HttpServlet" New topic
Author

default constructor in HttpServlet

saravanan ragunathan
Ranch Hand

Joined: Aug 02, 2010
Posts: 84

I studied that "please don't define the constructor as your own when extending HttpServlet
use the default one given by compiler "what does the default construcor do ?


"I Love Java Ranch"
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

"please don't define the constructor as your own when extending HttpServlet use the default one given by compiler"

This does not make any sense (although I sense it might have to do something with this). Where did you read this ?


[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

Please SearchFirst. The subject of constructors in servlets has been broached many times.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: default constructor in HttpServlet