There is such a structure - pure JSP without anything else.

enter image description here

All this needs to be transferred to Spring MVC.

The bottom line. in the folder tpl embedded parts of the pages that are in the folder page. There I connect them with

<%@include file="../tpl/main-head.jsp" %> 

How can I transfer this view to Spring MVC? use jstl?

  • Yes, you can and just like that. But it’s better to convert to jspx and use JSTL. - Sergey Gornostaev
  • @SergeyGornostaev example possible? please - Tsyklop
  • An example of a similar jspx directive <jsp:directive.include file="../tpl/main-head.jspx" /> - Sergey Gornostaev
  • Example jsp-tag <jsp:include page="tpl/main-head.jsp"> - Sergey Gornostaev
  • Example jstl-tag <c:import url="tpl/main-head.jspx" /> - Sergey Gornostaev

0