Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   auto redirection after algorithm finishes (http://www.go4expert.com/forums/auto-redirection-algorithm-finishes-t21974/)

adam2009 2May2010 14:04

auto redirection after algorithm finishes
 
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 2May2010 15:10

Re: auto redirection after algorithm finishes
 
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 2May2010 15:17

Re: auto redirection after algorithm finishes
 
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?


All times are GMT +5.5. The time now is 00:17.