I would like to have my jsp page call another jsp page to process some data. While this second page is processing the data, how can I send a 'Please wait while processing...' type page (html or jsp) to the browser?
Any help or tips would be greatly appreciated
Start your response HTML and body and use tables or something to create the progress bar. I have used DIV elements with 'width' attributes in IE.
begin your background process.
begin a loop with a wait() or sleep() depending on how you implement your background process thread.
when your wait/sleep ends get your progress from the backgound process then write a HTML SCRIPT element containing line(s) of code that update the width of the progress bar element that you already sent.
Continue until background progress completes.
Send the remainder of the page, i.e. a completed message, then send another script element that hides the progress bar and shows the message element.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.