O'Reilly logo

Mastering Spring Application Development by Anjana Mankale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Spring with Thymeleaf Integration

Thymeleaf is a template engine that is completely written in Java. It supports XML/XHTML/HTML5, and that means we can develop templates using XML or XHTML or HTML5 using the Thymeleaf template engine library. It provides an optional module for Spring MVC and Spring Web Flow integration. Template engines help us to create reusable components in the UI. Template usually by convention consists of a header, menu, message, body, content and footer components. The content part is loaded dynamically with messages. We can create different layouts with a template.

Thymeleaf can be used instead of JSP. We have so far used tiles with JSP for making templates with custom tags. Thymeleaf templates are XHTML, XML, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required