Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Spring MVC partial views

I'm learning Spring MVC at the moment and comparing it to ASP .NET MVC. Is there a way to use partial views in java (like .ascx partials in ASP .NET MVC), so i can associate it with action method of some controller and pass model data to it.

like image 484
wassertim Avatar asked May 25 '26 00:05

wassertim


1 Answers

I'm not familiar with ASP .NET MVC but you might want to take a look at Apache Tiles, it's a very easy way to split up a view into several files.

Sitemesh is also good for this.

like image 102
matt b Avatar answered May 26 '26 12:05

matt b



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!