do a "please wait" page - try this inside your page:
<% void sendWaitToClient(java.io.PrintWriter out) {
/*
replace 'java.io.PrintWriter out' with:
'int error, javax.servlet.jsp.JspWriter out'
for 1.00 + JSP engines
*/
out.print("<div id=\"ShowPage\" style=\"position:absolute; z-index:10;
visibility: visible; left: 0px; top: 0px; width: 700px; background-color: #FFFFFF;
layer-background-color: #FFFFFF;\">");
out.print("<table width=\"680\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\"
><tr align=\"center\" valign=\"middle\"><td height=\"120\"
align=\"center\"><h2>"Thank you!"<br>We are waiting forever.</h2>");
out.print("<br><h3>A response will return<br>momentarily</h3>");
out.print("( Image of clock or hour-glass)<P><br>");
out.print("</td></tr></table>");
out.print("</div>");
out.flush(); // make sure the browser see the count
try {
Thread.sleep( 1 );
}
catch ( InterruptedException e ) {}
//out.flush(); part of original
} // sendWaitToClient
%>
Stephen Toner wrote:
> Hi,
> I was wondering if it is possible to call up a new page from the Java part
> of the JSP. Basically in my page I have a loop where a lot of processing is
> done. This can take a lot of time to do, and so the compilation time can be
> quite large. I would like to be able to bring up something like a pop-up
> window saying dothat processing is occuring and to please wait. Is there any
> way to do this from Java?
> Thanks,
> Stephen
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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