Templates in a Spring MVC web application

前端 未结 4 2357
北海茫月
北海茫月 2021-02-19 21:21

I have a lot of common areas in my web application design, for example footer, header sidebar, blocks...etc and going through all of the application JSP files to change somethin

4条回答
  •  盖世英雄少女心
    2021-02-19 21:50

    Ideally yes, You need to create common files instead of redundant code because it might leads to many changes if u want to change a single thing. So try to use below code based on your requirement.

    <%@ include is a static include,

    Another solution: As you are using Spring framework try to use spring tiles search in google for more help for example SpringByExample

提交回复
热议问题