wood burning stoves 2.0*
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
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: 60822
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: default constructor in HttpServlet
 
Similar Threads
Can i write a constructor in my servlet
servlet creation-init() or constructor
How can i resolve this exception
when the container instatiates the servlet will it
constructor for a servlet