Is there a way to prevent a .jsp page from loading until after the entire page has been processed?
Here is the problem: Our web based app accesses a data base, and sometimes when there is a lot of data being returned, parts of the page (including images with links) appear before all the data has been processed and displayed. Sometimes impatient users will click these links which require data being returned. This really messes things up.
I think you're talking about preventing the output of a jsp until it is finished, not the loading. What you're describing is a form of auto-flushing. In the alternative, you can call out.flush() manually in order to send data to the user while processing is still going on.
In other cases, flush() is called automatically depending on the server settings such as if the buffer becomes too large or the page has finished loading. You can disable this feature by setting the page context autoFlush parameter to false. That should solve you're problem but you may need to manually call flush at the very end of processing of the JSP to re-enable the flush. [ December 15, 2005: Message edited by: Scott Selikoff ]