Solved

Progressive Web Page update

Posted on 2004-04-09
5
179 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

759 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

17 Experts available now in Live!

Get 1:1 Help Now