Spring MVC request

94 Views Asked by At

How is it possible in a Spring MVC application using JSP to perform a number of n requests,where n is the number of data changes and to update the data in the JSP in real time after each change?

1

There are 1 best solutions below

0
On

What you want with JSP is kind of counter intuitive, since JSP uses server side page generation, while you want client generation.

A simple approach would using jquery and a rest API using Spring MVC. https://spring.io/guides/gs/consuming-rest-jquery/

You can use JSP to server the initial page and use JQuery to perform dynamic updates.