There is an operation which is going to take long time in the backend (longer than HttpSession expiration time). So we need to send the data back incrementally to the user screen (browser) so that the session doesn't expire.
How can we do this?
Discussions
Web tier: servlets, JSP, Web frameworks: Sending incremental data to browser with session expiration
-
Sending incremental data to browser with session expiration (1 messages)
- Posted by: Ramesh P
- Posted on: August 24 2005 23:39 EDT
Threaded Messages (1)
- Sending incremental data to browser with session expiration by Ashish Jamthe on August 26 2005 00:15 EDT
-
Sending incremental data to browser with session expiration[ Go to top ]
- Posted by: Ashish Jamthe
- Posted on: August 26 2005 00:15 EDT
- in response to Ramesh P
The conventional way to achieve this (we used this in previous project) would be to have the client refresh every few seconds and show the progress. Even if the backend process takes too long it could possibly indicate the progress to the front end via a database. There are newer ways to achieve this using AJAX I presume.