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, forward immediately to your
"Please wait" page.
3. On your "please wait" page, use javascript setTimeout() to submit
an empty form to an action every, say, 1500ms.
4. On your action, check for the flag in the session. If it's present,
remove the flag and forward to your result page; otherwise, forward
again to the processing page.

Regards,
-Yves-

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 until the
> search has finished.  (Sorry it is hard to describe... it's easier to just
> check it out).   When the search is finished it loads the results page.
> If you click the browser back button, it navigates to the original search
> page rather than the "please wait" page.
> 
> I have searched the struts-user archives and google for more information
> about this technique using struts/jsp but have not had much luck.    The
> nwa site obviously runs some type of Microsoft/ASP based web framwork that
> I have seen on other web-sites.
> 
> Can anyone provide more information about how to accomplish the technique
> used on nwa.com using Struts/JSP's???  Is there a book or internet resource
> that provides more background on this technique?
> 
> Thanks in advance for your help...
> 
> TJ Herring
> [EMAIL PROTECTED]
> 
> ------------------------------------------------------------------------
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from any
> computer.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
For me to poop on!
http://www.formetopoopon.com
http://www.nbc.com/nbc/Late_Night_with_Conan_O'Brien/video/triumph.shtml

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to