The glory lies not in not falling, but it lies in rising everytime you fall
Originally posted by Bis Bang:
Hi,
Jhon...I think u r mistaking...A servlet can have a constructor(default).. U try to write a servlet with a constructor and init() it will compile and run..No doubt about that...
[ March 11, 2004: Message edited by: Bis Bang ]
Thanks
Vikas Sharma
SCJP(1.4)
Originally posted by Bis Bang:
Hi,
Jhon...I think u r mistaking...A servlet can have a constructor(default).. U try to write a servlet with a constructor and init() it will compile and run..No doubt about that...
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
The glory lies not in not falling, but it lies in rising everytime you fall
Remember the following :
When the servlet container starts up, the following can happen :
1. the servlet container looks into the deployment desciptor for a servlet definition.
2. the servlet container instantiates the servlet by calling Class.forName(servlet-class).createInstance(), the no-arg constructor is called.
3. the servlet container calls the init(ServletConfig)-method on the servlet instance. The init(ServletConfig) method stores a reference to ServletConfig and calls the init()-method on the servlet intance. The ServletConfig object contains all the initialization parameters specified for this servlet in the deployment descriptor.
4. the servlet container calls the service(ServletRequest, ServletResponse)-method of the servlet as needed for processing client requests.
5. .....
The glory lies not in not falling, but it lies in rising everytime you fall
Lasagna is spaghetti flvored cake. Just like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|