Re: Java Script / JSP Doubt

"V. Jagadesh Lee" <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
There is a straight forward way you can do this.

Step1
        After the login page show the page that says "loading
Information....".
Step2
        In the same page set an attribute in the session that represents
the     Object that does the database interaction. The object may just
have a  ResultSet as its member.
Step3
        Make sure you display the message and flush the output stream of
the     response and then call the method that populates the object.
Step4
        Redirect the page to the third page that fetches the records
from the        ResultSet that is available in the object you set in the
session.
Step5.
        Once you are done with the display remove the attribute from the
session.

By doing this you need not do any extra coding. I haven't tried this. It
should work theoretically.

Lee

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[email protected]] On Behalf Of
Gopal
Sent: Monday, April 21, 2003 3:23 PM
To: [email protected]
Subject: Java Script / JSP Doubt

I have a doubt .CAN ANY ONE GIVE ME A CLEAR SOLUTION AS SOON AS
POSSIBLE..

  I have a page called lets say , a.html which is a login page.
  Once a user logs in to a.html he enters the next page lets say
  b.jsp ,which is a dynamic page and the contents has to be
loaded
   from the database.
  So it takes atleast one minute to load b.jsp.So till the time
  b.jsp loads , i need to show a temperory page which states that
"
  PLEASE WAIT WHILE THE PAGE IS BEING LOADED "

  How can I implement this ?

  CAN ANYONE PLEASE HELP ME ..

  Gopal

________________________________________________________________________
___
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.