auto redirection after algorithm finishes

adam2009's Avatar, Join Date: Jul 2009
Light Poster
Hello all,
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 ?
Cheers,
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
The process should be simple.

You start the page display and then start the computation and at the end redirect for the result.

The computation can also go in Ajax as well.
adam2009's Avatar, Join Date: Jul 2009
Light Poster
Thanks,

the problem is that the algorithm runs on a remote machine.

So I guess I'll have to use IPC to JSP. right ?
What's the best way to do it?