Skip to main content

Layouts

Learn Layouts (View Technologies, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Layout : a shared page frame (header, menu, footer) written once and reused by every page, so you do not copy markup. Thymeleaf fragments : define with th:fragment="header" and use with th:replace or th:insert . Other engines : FreeMarker uses <#include> and macros, and Mustache uses partials such as {{> header}} .

More lessons in View Technologies