Can I override destroy() method of Servlets?
Answers were Sorted based on User's Feedback
Answer / kalyan
yes we can override destroy() method according application
requirement....
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / mohd adnan
yes off course we can override the destroy(), method. There is confusion between us, as many of us thinks destroy method call destroy the servlet, however this interpretation is wrong. calling destroy method is only call to the last method before servlet dies. it never destroy servlet.
--------- By Mohd Adnan MCA IMS Ghaziabad
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / komal singh adhikari
YES,
we can call and override destroy().
Is This Answer Correct ? | 4 Yes | 1 No |
1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?
Can we use the constructor, instead of init(), to initialize servlet?
describe all about advanced java with presentation
What is Servlet Context?
How can we upload the file to the server using servlet?
Is there any differance b/w getting servlet context from servlet config and session? if yes then what is that?
What are the steps involved in placing a servlet within a package?
What is a servlet-to-servlet communcation?
How can a servlet refresh automatically if some new data has entered the database?
3 Answers Citi Bank, CitiGroup, IBM, Satyam,
What is the difference between callling a RequestDispatcher using ServletRequest and ServletContext?
What are Servlets?
why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.