> -----Original Message-----
> From: A mailing list about Java Server Pages specification
> and reference
>
> I have the following problem.
>
> I have made a jsp, This jsp page has a function call whose execution
> time breaks the time out of the browser that i use.
>
> In that case the page is never loaded. I think i have two solution
> branches:
>
> 1. Configure time out of the browser (i don�t like this)
> 2. Launch the function called in the jsp in a separate thread.
>
> Could you help me with more details?

I have a suggestion.
You could arrange that *something* is sent to the browser periodically to
prevent it from timing out (and also to prevent the user from timing out
:-) ). It could be something visible to the user or you could simply send
something like a stream of '*' in an HTML comment block - remember to call
out.flush() to ensure it gets sent to the browser. You could use a separate
thread to accomplish this (send a character/sleep() repeatedly).
Note: the browser may not display everything you send immediately, depending
on the HTML structure.

HTH,

Steve S

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to