Hi Abhishek,
Thanks for the complement
As Sebastien said, the container can't pass parameters to the constructor, because you would need to change the container, that is rewrite parts of
Tomcat etc, and how would the container know what parameters to pass to the constructor.
If someone was very clever and had the spare time, they could work out a way, maybe through the DD that the container could work out parameters for a constructor, and pass them in when the servlet was created. But that is so far away from the current servlet specification, and would be very difficult to implement in a generic fashion. Much better at this stage to just remember that the coonstructor needs to take no parameters.
Mat