by Kishan » Thu Feb 07, 2013 2:27 am
Yes, you can write constructor but it must be zero argument constructor.
Reason, servlet object created by container so if constructor takes parameter then container doesn't know what to pass then it fails in the runtime.