can i call destroy() method in init() method of servlet
Answer Posted / deepesh
Yes, We can call destroy() from init() method but after
coming out from the destroy() it will again process the init
() method like the life cycle has to be. Thus we can not
control the servlet life cycle, though we can call destroy
() from init().
Thanks.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the steps involved in placing a servlet within a package?
How do you get the ip address of the client in servlet?
How do we call one servlet from another servlet?
Explain the custom jsp tags and the beans.
What is servlet and list its types?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is the difference between portlet and servlet?
Explain url encoding?
What are the advantages of Servlet over CGI?
When should you prefer to use doget() over dopost()?
What is the difference between get and post methods?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
What is the default http method in the servlet?
What are the uses of servlet and what is servlet chaining?
What is a servlet context object?