Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Will the page halt like it does, when a <jsp:forward> tag is encountered?
AND
Can we say that the JSP/Servlet would finish processing the _jspservice()/service() method, when the user clicks the stop button?
Originally posted by Desai Sandeep:
Hi all,
I guess, from your replies that the Container handles each client as a separate Thread (It may not be exactly like that, as it is going to depend on the implementation of the Servlet/JSP Container).
However, does this also mean, that such Connection Objects which the clients open (ofcourse, it is a very bad programming practice!!) would continue to hog the memory resources till the JSP is destroyed by the Container, incase there is no finally clause in my JSP client?
Will the page halt like it does, when a <jsp:forward> tag is encountered?
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Not sure what you mean - who is opening these Connection objects? The normal HTTP connection between client and server is
managed by the servlet engine (or HTTP server) and will be cleaned up automatically. If you open your own connection in your
JSP, and do not close it in a finally clause, you will have a potential resource leak.
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|