All servlets have a default no-args constructor, which gets called before the init(...) method. The Servlet container can't know what sort of parameters you're expecting as part of the servlet-instance construction step, so it has to assume you have a no-arg constructor that's available to create a "default" instance of the servlet.
Cheers
Martyn
|