Solved

Redirection

Posted on 2002-06-20
3
190 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running Java Servlet inside Eclipse Luna 6 156
immutable object concept 5 119
AlarmClock Challenge 35 150
struts exact match support 3 56
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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