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 |
What is http servlet?
Why servlet is faster than jsp?
Which are the different ways you can communicate between servlets?
Is servlet a controller?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
What is called servlet mapping?
how this statement works..? public void service(HttpServletRequest request,HttpServletResponse response)
Write a servlet to upload file on server.
Difference Between Web Server and Application server ??
What is the difference between doGet and doPost?
What is the process for chaining servlet?
How to commuincate between an applet and a servlet?