can i call init() method in destroy() method of servlset. ?
Answer Posted / arulmani
init()method will be called by the webcontainer with the
servlet object by passig the ServletConfig object,when the
servlet object will be created.
destroy()method will be called by the webcontainer when
servlet object will be destroyed
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What is the structure of the http response
Explain the difference between generic servlet and http servlet?
Explain the lifecycle of a servlet?
What are the types of servlets? Explain
What are its drawbacks of cgi?
Describe some assignments that are executed by servlet container?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
Which method of the httpservletrequest object is used?
Explain the different ways for servlet authentication?
Can a jsp be called using a servlet?
Why do we have servlet listeners?
How will two or three servlets interact or communicate with each other?
When should you prefer to use doget() over dopost()?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code