Re: please wait page... like NWA.com

2004-09-15 Thread Håkon T Sønderland
Andrew Close wrote: [snip] you'll have to play with layout a bit to get things looking correct. when you submit just be sure to call your onclick="process();" or onchange="process();" function and you should be all set. HTH :) Yves, Andrew, Thanks for this, I'll experiment and see if I can get s

Re: please wait page... like NWA.com

2004-09-14 Thread Yves Sy
The "threading stuff" only sounds intimidating but its actually simple. In the execute() method of your action class, all you need to do is go something like: new Thread() { public void run() { //your processing logic Business.processWhatever(); //place flag in sess

Re: please wait page... like NWA.com

2004-09-14 Thread Andrew Close
On Tue, 14 Sep 2004 18:45:47 +0200, Håkon T Sønderland <[EMAIL PROTECTED]> wrote: > OK, thanks, I think I understood that. > However, does not this page then stay up there even after the action is > completed and you go to your result page? > > My problem is that the struts page I'm developing is

Re: please wait page... like NWA.com

2004-09-14 Thread Håkon T Sønderland
Wayne Fuller wrote: On Tue, 14 Sep 2004 17:05:58 +0200, Håkon T Sønderland <[EMAIL PROTECTED]> wrote: Sorry for being a complete clueless newbie, but could you expand a bit on this? I don't have the concepts quite clear enough to understand what you mean. Thanks, Håkon That's quite alright, no ne

Re: please wait page... like NWA.com

2004-09-14 Thread Wayne Fuller
On Tue, 14 Sep 2004 17:05:58 +0200, Håkon T Sønderland <[EMAIL PROTECTED]> wrote: > Sorry for being a complete clueless newbie, but could you expand > a bit on this? I don't have the concepts quite clear enough to > understand what you mean. > > Thanks, > Håkon That's quite alright, no need to a

Re: please wait page... like NWA.com

2004-09-14 Thread Yves Sy
One way to do this is: 1. Start a thread on your search action that does the actual retrieval and processing of the data. At the end of the thread's execution, place a flag in the session that you will check for later on to see if the search/processing is done. 2. Right after starting the thread,

Re: please wait page... like NWA.com

2004-09-14 Thread Håkon T Sønderland
Wayne Fuller wrote: The way we have implemented it is with javascript. You set the href for the window and then submit the form. Sorry for being a complete clueless newbie, but could you expand a bit on this? I don't have the concepts quite clear enough to understand what you mean. Thanks, Håkon

Re: please wait page... like NWA.com

2004-09-14 Thread machemc
Would something like this work if you put an img reference in the "please wait" page, that actually did the search process, and put its results in a session object, before returning an image to the page? Then the page could have an onLoad function to bounce to the results display page, which pu

Re: please wait page... like NWA.com

2004-09-14 Thread Wayne Fuller
On Tue, 14 Sep 2004 09:32:16 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Northwest airlines (www.nwa.com) and other similar sites have a very nice > "Please wait/searching" page concept. When searching for a flight, it > sends you to a Please Wait/searching page that continues to load un

please wait page... like NWA.com

2004-09-14 Thread tj . herring
Northwest airlines (www.nwa.com) and other similar sites have a very nice "Please wait/searching" page concept. When searching for a flight, it sends you to a Please Wait/searching page that continues to load until the search has finished. (Sorry it is hard to describe... it's easier to just chec