The problem isn't within your JSP necessarily, it's to do with the fact that
some browsers clear the screen whenever you try to navigate to a new page
(which includes submitting a form).

If your database processing is quite lengthy you may want to consider having
a status section on your page which uses client-side javascript to output
the status of your database activity.  For example, you could use a frame to
hold a brief status bar and access it as follows :

For this example, assume you have a frameset with a "status" frame called
frameStatus which has inside it a span or div with the id statusText.

<% // form has been submitted so notify user
%>

<script language="JavaScript">
        top.frames.frameStatus.statusText.innerText = "Working...";
</script>

<% // place your db activity code here
        (some code here)

   // some different db activity is about to occur so notify user
%>

<script language="JavaScript">
        top.frames.frameStatus.statusText.innerText = "Working on something
different...";
</script>

<% // place your different db activity code here

   // processing is finished so notify user
%>

<script language="JavaScript">
        top.frames.frameStatus.statusText.innerText = "Finished processing";
</script>



By using this method of notifying the user you can also loop through
recordsets and (assuming you have a recordset count) show a percentage meter
in the status frame or whatever you want.  You don't need to use frames,
either - simply place a span or div on your main page that then gets updated
and, as the processing is completed, clears the innerText property of the
span or div.

-----Original Message-----
From: Ron Parker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 21, 1999 11:25 AM
To: [EMAIL PROTECTED]
Subject: Blank Screen


I've created a .jsp which does a bunch of database handling.  I'm using
the same page for insert, select and update functions, so the .jsp is
basically calling itself on each submit.  When submit is pressed,
however, the screen goes blank for several seconds before the page
reloads and processes request.  How can I either stop the screen from
going blank, or print some message on the blank screen while the .jsp is
reloading and processing?  Thanks.

-ron

--
Ron Parker
Software Creations            http://www.scbbs.com
TradeWinds Publishing         http://www.intl-trade.com
TradePoint Los Angeles        http://www.tradepointla.org
SiteDirector Security Server  http://livepublish.scbbs.com
Civil War Online Library      http://civilwar.scbbs.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to