5
I am developing a web application in Spring MVC.
I have a method that returns a list (java.util.List) and I need to pass it to the view (.jsp), but without updating the page.
I would like to know some other way to pass the information from Java to the view, but without using Modelandview, because when I use it the page is updated.
To avoid a new request, you will need to use AJAX
– Rodrigo Gomes
Create a Controller that will receive the AJAX requests, and call the methods that will return the values, then convert the values to JSON, for example, and return to the callback of your ajax function to process and update the html dynamically
– Rodrigo Gomes