I wrote a jsp page. It has a form with a submit button that sends the data to some algorithm.
I would like the submit button to load a "please wait" html.
After the algorithm is done - that "please wait" page will be auto redirected to a result page html.
My problem is that I don't know in advance how long will it take the algorithm to run and redirect the "please wait" page.
Does someone know how it gets done ?