Hi,
That is a very interesting question. To
test it I did the following
servlet code
jsp code
I also added appropriate entries into the web.xml file.
I then called the servlet via
http://localhost:8080/RanchTest/DestroyTestServlet I got a page displaying '1' (the jsp had been called) I then left it a short while to allow the garbace collector time to clean up any objects and then called the jsp directly via
http://localhost:8080/RanchTest/destroy_006640.jsp and I still get '1' The garbage collector had not called the finalize method and cleaned up the servlet.
Interestingly I can still call the servlet via
http://localhost:8080/RanchTest/DestroyTestServlet and it works. I still get an html page displaying '1' (1 instance of the servlet as I would expect) and the redirect is still clearly working, so the container also still knows about the servlet
Mat