{removing foot from mouth}  I thought the refresh page was polling to
see if the request was ready.  This is an approach we have used in the
past.  Dave's approach seems to be better. :)

Cheers,
Bill


On Mon, 29 Mar 1999, Darren Houle wrote:

> Why is it nasty?  He said his query already takes 30 seconds.  Setting refresh to 5 
>would do nothing but add 5 seconds to original query's 30 (which wouldn't start 
>processing until that refresh happened.)
>
> >>> "William G. Thompson, Jr." <[EMAIL PROTECTED]> 03/26 5:26 PM >>>
> Refresh time of zero is a bit nasty..
> How about a 5 sec refresh with a small animated gif on the please wait page.
>
> Bill
>
> On Fri, 26 Mar 1999, Dave Ferguson wrote:
>
> > You can use a meta tag with a refresh time of zero.  Like this:
> >
> >     if ( session.getValue("waitPage")==null )
> >     {
> >       session.putValue( "waitPage", Boolean.TRUE );
> >       PrintWriter writer = req.getWriter();
> >       writer.println( "<HTML>" );
> >       writer.println( "<HEAD><TITLE>Please wait</TITLE>" );
> >       writer.println( "<META http-equiv="Refresh" content="0">" );
> >       writer.println( "</HEAD>" );
> >       writer.println( "<BODY>" );
> >       writer.println( "<CENTER><H2>Please wait.....</H2></CENTER>" );
> >       return;
> >     }
> >     else
> >     {
> >        session.removeValue( "waitPage" );
> >     }
> >
> >     // Do your database pull here
> >     // Until you send back data, browser will continue to show "please wait"
> >
> > - Dave F.
> >
> > > Dave Muehling wrote:
> > >
> > > Hello all.
> > >
> > > I have the folowing problem.  I'm trying to create a "please wait while getting 
>results" page during a database pull.
> > >
> > > Every time I try to insert code to bring up a page that says "please wait...", I 
>either never get beyond that code (on the front end) or I get my results on the same 
>page, at the same time, after a considerable wait.
> > >
> > > The DB takes approx. 30 sec. to do a very large query and I would like to have 
>some kind of page come up to distract the user from this wait time.
> > >
> > > I think I need to somehow do a redirect, but how do I know when my page is done 
>being built? And how do I keep track of users if I leave and come back? I looked into 
>signing each result set with a session variable but couldn't figure it out.
> > >
> > > Please help.
> > >
> > > Dave Muehling
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to