I am implementing a functionality in my web app such that a client can generate the report by entering some data and clicking on the submit button.
The problem is that report generation takes lot of time and the report might not generate if the user entered data is wrong.
The complete report generation task has many sub-tasks and I want when the client presses submit then just below that page I want to show the status/progress of the report generation tasks splitted in various sub-tasks like
- Validating input data ------ Done
- Fetching the data ------ In Progress
and so on,
How can I achieve this using Struts2, jQuery in the web layer?
Any help will be greatly appreciated.
Thanks
We had a similar problem. The transaction normally takes 20 seconds, sometimes over a minute. We thought there would be easier solutions but we ended up with a scheme like this,
We ran into some problem with the load-balancer. For the scheme to work, every reload must come back to the same server. Fortunately, the load-balancer supports sticky routing based on our session id.