Another approach is to use javascript to display "Please wait" before
executing the query and then hiding the text after the query is finished.

Justy

----- Original Message -----

> You can use the following header
>
> <jsp:useBean id="tast" class="FormProcessingBean" scope="session">
> <%
> if(!test.isDone()) {
>   response.setHeader("Refresh", "10");
>
> %>
> <HTML>
> <body>
> Please wait
> </body></HTML>
>
> <%
> }
> else {
> <HTML>
> <body>
> Send result after processing
> </body></HTML>
> }
> %>
>
>
> It will keep refreshing the page after 10 secs until your
FormProcessingBean
> is done. Of course, FormProcessingBean has to process the request in a
> separate thread of execution.
>
> Regards,
> Chandra Patni
> Oracle Corp
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of sufi malak
> Sent: Wednesday, June 13, 2001 9:35 AM
> To: [EMAIL PROTECTED]
> Subject: "Please wait" how to ???
>
>
> Hi, sometimes when I submit a query from a form, it takes long time before
> data shows, how to show a message "Please wait" before data shows up (in
jsp
> and in servlet).
> Thanks
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.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
>
>
===========================================================================
> 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
>

===========================================================================
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