?
Solved

Progressive Web Page update

Posted on 2004-04-09
5
Medium Priority
?
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
We are witnesses that everyone is saying that our children shouldn't "play" with a technology because it is dangerous. This article is going to prove that they are wrong.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

764 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