Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Progressive Web Page update

Posted on 2004-04-09
5
Medium Priority
?
187 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

WooCommerce is becoming the most powerful e-commerce plugin for Wordpress. And why not. The platform comprises of numerous core plugins that may come in handy, powerful options to make your website development task much easier.
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
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…

618 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