Solved

Progressive Web Page update

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Jquery ajax file upload not working 11 154
difference between member and local variables. 29 126
Multiple Images Upload [JSP Web-application] 3 37
build fail in maven project 11 179
Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

25 Experts available now in Live!

Get 1:1 Help Now