1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

auto redirection after algorithm finishes

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

  1. adam2009

    adam2009 New Member

    Joined:
    Jul 10, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    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,
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    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

    Joined:
    Jul 10, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    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?
     

Share This Page