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 notify an object in session when session is invalidated or timed-out?
Write a program to show the functionality of servlets.
Explain the steps involved in placing a servlet within a package?
What are the ways to handle multi-threading in servlets?
How the typical servlet code look like ?
Where do you define dispatcherservlet?
Explain the lifecycle of a servlet?
Write a command to get actual path of a servlet to the server?
What do you mean by cgi in servlet?
What do you mean by servlet context?
Difference between forward() method and sendredirect() method ?
How the JSP file will be executed on the Server side?
Which application server is best for java?
What is Request Dispatcher?
What are the differences between the servletconfig interface and the servletcontext interface?