Solved

Redirection

Posted on 2002-06-20
3
189 Views
Last Modified: 2010-04-01
I have a jsp that takes a long time to load.  I would like to trigger the jsp that takes a while and then display a gif that indicates that progress is still being made on the page request so that the user gets feedback that the search is still being performed.  Then, when the page finally finishes downloading, I would like to swap out the image that indicates activity with another image that indicates that the jsp is done or no image at all.  

Now, is there a way to detect when a jsp is done downloading?  Also, what is the best mechanism to swap the done image in for the downloading image?  Thanks!!
0
Comment
Question by:alpine
3 Comments
 
LVL 1

Accepted Solution

by:
rajendra_rathod earned 100 total points
ID: 7096789
Hi,

I think u can use this code instead of message u can put any image u want.
if ( session.getValue( "WAIT" ) == null ) {
    session.putValue( "WAIT", "" );

    out.println( "<HTML>" );
    out.println( "<HEAD>" );
    out.println( "<TITLE>Please Wait...</TITLE>" );
    out.println( "<META HTTP-EQUIV=\"REFRESH\" CONTENT=\"1\">" );
    out.println( "</HEAD>" );
    out.println( "<BODY>" );
    out.println( "<CENTER>" );
    out.println( "<br><br><br><br><H3><font color = red>Page Loading.....</font></H3><HR>" );
    out.println( "<H4><font color = red>Please wait.</font></H4>" );
    out.println( "</CENTER>" );
    out.println( "</BODY>" );
    out.println( "</HTML>" );
    out.close();
}
else {
    session.removeValue( "WAIT" );
%>

Your jsp code which do certain operations

<% } %>

Cheers
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7096944
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now