1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

auto redirection after algorithm finishes

Discussion in 'JSP' started by adam2009, May 2, 2010.

  1. adam2009

    adam2009 New Member

    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 ?
  2. shabbir

    shabbir Administrator Staff Member

    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.
  3. adam2009

    adam2009 New Member


    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?

Share This Page