Hey... that's *my* idea ;-)
See the December issue of JavaWorld for a full discussion:
http://www.javaworld.com/jw-12-1998/jw-12-servlethtml.html
- Paul Philion
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
S/MIME Cryptographic Signature