Solved

Progressive Web Page update

Posted on 2004-04-09
5
181 Views
Last Modified: 2010-04-01
Hi there,

I am currently building a site using JSP and I am wondering if there is a convenient way to display updates to users as they happen.

Essentially, some of the processes are computationally intensive (encryption and the like) and I would like to update the user as to where the process is up to. So, rather than - say - 10 different pages for each of the stages, if there were 10 bullet points in a page, I would like to show each one when the relevant Java code returns from its computation. Is it possible to do this? If so, how?

Any help would be really appreciated.

Paul
0
Comment
Question by:fishpalboy
  • 2
5 Comments
 
LVL 2

Expert Comment

by:anthony_castillon
ID: 10790546
Paul,

Why not set up a flag object (maybe in a class ComputationFlag) that has parameters indicating completion of the various stages in the processing?  Then at the start of the processing, instantiate this class and put the object as a session attribute (using session.setAttribute ("processFlag", myFlagObject)).  

As you open the JSP, check this flag object from the session and see which parameters have been set to complete or "true".

Hope this helps.
0
 

Author Comment

by:fishpalboy
ID: 10790606
The problem with that is that it involves loading the page several times.

Basically what a want to achieve is that the page loads once, as each of the stages completes, the page is updated without being reloaded. That makes it a lot harder, I think.
0
 

Author Comment

by:fishpalboy
ID: 10791080
I have found out how to do it:

You output 256 bytes (if you are using IE) and then whenever you want output to the browser you call out.flush() in your JSP. Lovely.

Paul
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 10820431
Closed, 250 points refunded.
Netminder
Site Admin
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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