Two Laptop Bag*
The moose likes Servlets and the fly likes Please Wait.....Loading  Bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Please Wait.....Loading  Bar" Watch "Please Wait.....Loading  Bar" New topic
Author

Please Wait.....Loading Bar

John C Clark
Greenhorn

Joined: Jun 03, 2004
Posts: 4
I have a servlet that after data is submitted it has to connect to an SAP system and perform a calculation. This takes some time. After the submit button is pushed, I would like to go to a new page and have an animated bar type image indicating the user to wait for a response. Then when the calculation is finished it goes to the results page.

How can I do this?
Alex Sharkoff
Ranch Hand

Joined: Apr 11, 2004
Posts: 209
John,

Please refer to this link http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Response-Headers.html

Pay attention to paragraph 3 (Example: Automatically Reloading Pages as Content Changes)


Hope it helps.


Alex (SCJP 1.4, SCBCD 1.3, SCWCD 1.4, SCJD 1.4)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Please Wait.....Loading Bar