Answer the question
In order to leave comments, you need to log in
Spring, is there a template engine?
Here, for example, in django all views are inherited from some kind of template and only a code block is inserted if the system is the same in spring, or do you need to write an html template separately for each view?
Answer the question
In order to leave comments, you need to log in
In grels (which are based on spring mvc) sitemesh is used. Everything is nicely wrapped up in there. I have never used pure springmvc, judging by the dock it doesn’t look very nice, but it can be done. In general, for each html jsp view, you do not need to write, but you can limit yourself to including a standard header and footer template. In general, you can organize everything without duplicate code.
Spring mvc uses jsp by default, but there are several templating engines that integrate seamlessly. There is even a project on github https://github.com/jreijn/spring-comparing-templat... . At the expense of expansion and inclusion in the template, respectively, it depends on the template engine itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question