I'm tackling a seemingly basic question in Java web development here, but I could use some guidance.
How can I refresh data on a JSP page? I understand the fundamentals (utilize jQuery for AJAX, Spring MVC for the "Controller" & handle data requests). However, my stumbling block is figuring out the simplest way to display the updated data on the page (considering that JSP is all server-side and not conducive to client-side updates).
I've explored a few options:
Using Mozilla Rhino + Velocity in JavaScript - seems like a laborious process.
Trying out the "new" Spring AJAX MVC enhancements - the examples are a bit confusing for me.
Returning a partially rendered String in the Spring Controller's get method via business logic+Velocity - uncertain if this is the appropriate approach, as it feels somewhat messy to construct the view object within the Controller class.
Is there a straightforward solution to my query? Essentially, I need to refill an HTML table at regular intervals. I must be overlooking something crucial here.
Thanks in advance!