posted 17 years ago
Hi...
From the "servlet life cycle" perspective the following two phases are different;
1. Construction: in this phase the container merely creates an instance of your "class" by calling the constructor.
2. Initialization: here where the container grants the created instance the priviliges and benefits of becoming a servlet, and this take place in the init() method.
You may add some code in your contrctor to initalize the created instance, but you will not be able to access any servlet features as they the instance is not initalized yet.
Hatim