Not to burst any bubbles here but the use of refresh as a kludge for browsers
not supporting server push (particularly IE) has been around far longer than
servlets have. I worked on a web site that used this approach in early '96, for
instance, and it certainly wasn't the first to use it.
A separate issue is the design of the servlet interface that irrevocably binds
the processing of a request to a particular thread. That's a major limitation
on the usefulness of servlets for heavy duty applications, but it's been
discussed in detail on this list previously.
- Dennis
Paul Philion wrote:
>
> 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
___________________________________________________________________________
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