Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC Partial Views in Java Spring MVC

I am wondering if Java Spring MVC has some sort of implementation that relates to returning partial views like ASP.NET MVC? Basically I want to return HTML, that is bound to an object and return it to a javascript callback to append to the dom, stead of building the html with Jquery (which is tedious). If not I may go with Jquery templates.

like image 985
Mike Flynn Avatar asked Nov 05 '22 03:11

Mike Flynn


1 Answers

I have done something like what you are asking. Basically I created a view, but I didn't associate it to the default layout. That way, when you load the view it only contains the HTML of the view, and not all the extras from the default layout.

Sorry I don't have the code on me to share.

like image 185
Iain Avatar answered Nov 11 '22 14:11

Iain