java - How to show progress of threads on the JSP page using Spring MVC? -


i have spring mvc webapplication, there 1 form taking input,based on inputs, creating 1 unique id (by checking in database,logic in java side not database creating unique id). fine till now.

now want give bulk upload option through csv file. parsed whole data csv file , tried insert data (8000 records) in database using taskexecutionservice. still whole process not fast immediate response, want show progress of whole task on jsp page , looks interactive , on completion of threads, want display link download csv file unique ids.

i don't know how update page threads running behind scenes?

any other approach process welcome, if compatible spring mvc.

this can done using ajax, can poll progress percentage end , use js/jquery or other plugins show progress.any how have design logic percentage of work done threads.may can count number of rows inserted , logic out of calculate percentage of work done. there should method returns % of work done , ajax calls method can display progress.

refer jquery progress bar

progressbar.js


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -