Glenn Wearen wrote:
>
> 1) Do browsers send any notification to the server
>    that the STOP button was pressed?
>

 Yes. They close the TCP connection to the server. But
there can be many intermediaries between the client and
the server, and in any case the server won't be notified
until it tries to read or write back to the client.

 Even if there is an IOException, it might happen after
the JSP has finished, since the server might have
buffered up all the JSP output and tried to send it
after the JSP was already finished.

 So you can't depend on the servlet being notified in
a timely way, or even at all.


> 2) How do other similar web-app servers, with technologies
>    similar to JSP such as ASP/CFM handle users pressing the
>    browsers stop button?
>

 It's nothing to do with the server technology, it's to do
with the internet. All similiar web-app servers have the
same 'problem'.


> 3) Is there anything in the servlet/jsp spec that defines
>    how servlet/jsp containers should handle users pressing
>    their browsers stop button?
>

 No, nothing beyond (maybe) getting an IOException when
trying to write data back to a client who has closed its
connection.

 The servlet spec is available at:

  http://java.sun.com/products/servlet/download.html

 The spec has a lot of background explanatory material,
it's a relatively easy read, and it's definitely worth
a quick perusal.

 The HTTP spec is referenced by the servlet spec, and
discusses some of the above issues, but it's more
concise, and so it's harder to read. It's rfc2616 (do
a google search to find a download).


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to