Jeetandra Mahtani wrote:

> Hello,
> Is there a way to display a html page having something like 'processing...please 
>wait' and
> once the servlet is ready to display the output, this page generated by the servlet 
>should
> be displayed?
> Thanks,- J

Here is an answer from a previous post

============================================================

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.

=======================================================================

==--==--==--==--==--==--==--==--==--==--==--==--==--==
S.Ramaswamy
Matrix Infotech Syndicate
D-7, Poorti, Vikaspuri, New Delhi, 110018, India
PHONE:    +91-11-5610050,   FAX: +91-11-5535103
WEB         http://MatrixInfotech.HyperMart.Net
==--==--==--==--==--==--==--==--==--==--==--==--==--==

___________________________________________________________________________
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