Currently, I have a table in JSP where I am populating all object attributes using Spring MVC. The backend is providing a list of DTO's which are then being added to the ModelView. In the JSP, we iterate through this DTO list and display it in the table. Now, there is a new requirement to implement an auto refresh that will update certain attributes of all objects every 5 seconds. However, these attributes should only be retrieved when the user manually triggers a refresh.
I am seeking suggestions for a better approach to achieve this functionality. Please share your ideas.