Can we use the constructor, instead of init(), to initialize servlet?

Chandra Patni

No you can't. It's the container who manages the lifecycle of the sevlet not you. Also, you must call super.init() for init() to work properly.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact